lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4352) only the test runner should be able to System.exit
Date Mon, 03 Sep 2012 16:30:08 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447343#comment-13447343
] 

Uwe Schindler commented on LUCENE-4352:
---------------------------------------

I think, simply passing another SecurityManager with -D should handle all this (and checking
the stack trace from it like Preflex-Codec). The reason why exitVM permission is granted automatically
to all classes from within -classpath is tricky: Otherwise, the code could never exit itsself
(it would not even allow to exit after its own main() method ends!).

I'll play around with it. The Zookeeper issue is well known, so they are waiting for their
patch to apply again (ZOOKEEPER-1544 was closed as duplicate, ZOOKEEPER-575 is pending since
long time - I don't expect a solution soon).
                
> only the test runner should be able to System.exit
> --------------------------------------------------
>
>                 Key: LUCENE-4352
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4352
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Robert Muir
>
> All others should get SecurityException

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message