Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
Description
The test fails with the following assertion:
test_stop_subtest0(org.apache.harmony.luni.tests.java.lang.ThreadTest)junit.fework.AssertionFailedError: checkAccess called
The test does not expect that security manager's checkAccess() method is called when stopping a new thread which is not running yet.
I think it is a compatibility issue.
The spec for Thread.stop() says:
If there is a security manager installed, its checkAccess method is called with this as its argument.
RI does not call this method for a thread which does not run, and this seems reasonable.
I suggest that drlvm would do the same.
NOTE: to reproduce the bug you should comment out ThreadTest.test_suspend() which hangs now. This issue is expected to be fixed with H-1519.
Attachments
Attachments
Issue Links
- is related to
-
HARMONY-1519 [DRLVM] Performance degradation while working in Eclipse
- Closed