[
https://issues.apache.org/jira/browse/LUCENE-4281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427167#comment-13427167
]
Dawid Weiss commented on LUCENE-4281:
-------------------------------------
I see the default one resets inherited priority and daemon status. Security
manager I wouldn't worry about...
{code}
if (t.isDaemon())
t.setDaemon(false);
if (t.getPriority() != Thread.NORM_PRIORITY)
t.setPriority(Thread.NORM_PRIORITY);
{code}
> Delegate to default thread factory in NamedThreadFactory
> --------------------------------------------------------
>
> Key: LUCENE-4281
> URL: https://issues.apache.org/jira/browse/LUCENE-4281
> Project: Lucene - Core
> Issue Type: Improvement
> Affects Versions: 3.6.1, 4.0, 5.0
> Reporter: Simon Willnauer
> Priority: Minor
> Fix For: 4.0, 5.0, 3.6.2
>
> Attachments: LUCENE-4281.patch
>
>
> currently we state that we yield the same behavior as
> Executors#defaultThreadFactory() but this behavior could change over time
> even if it is compatible. We should just delegate to the default thread
> factory instead of creating the threads ourself.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]