-
Bug
-
Resolution: Fixed
-
P3
-
9, 10
-
b162
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8177605 | 10 | Doug Lea | P3 | Resolved | Fixed | b04 |
This test, run by java/util/concurrent/tck/JSR166TestCase.java
* @run junit/othervm/timeout=1000/policy=tck.policy
* -Djsr166.testImplementationDetails=true
* JSR166TestCase
fails at some (2-core machine?) platform/machine, reproducible (9/156 and later)
#section:junit
----------messages:(5/445)----------
command: junit -Djsr166.testImplementationDetails=true JSR166TestCase
reason: User specified action: run junit/othervm/timeout=1000/policy=tck.policy -Djsr166.testImplementationDetails=true JSR166TestCase
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.base,java.management --add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED
elapsed time (seconds): 19.512
----------configuration:(5/175)----------
Boot Layer
add modules: java.base java.management
add opens: java.base/java.lang ALL-UNNAMED
java.base/java.util.concurrent ALL-UNNAMED
----------System.out:(0/0)----------
----------System.err:(28/1968)----------
JavaTest Message: JUnit Failure: testCommonPoolThreadContextClassLoader(ForkJoinPool9Test): junit.framework.AssertionFailedError: Should throw java.lang.SecurityException
java.util.concurrent.CompletionException: junit.framework.AssertionFailedError: Should throw java.lang.SecurityException
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1739)
at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: junit.framework.AssertionFailedError: Should throw java.lang.SecurityException
at junit.framework.Assert.fail(Assert.java:50)
at JSR166TestCase.shouldThrow(JSR166TestCase.java:1163)
at JSR166TestCase.assertThrows(JSR166TestCase.java:1964)
at ForkJoinPool9Test.lambda$testCommonPoolThreadContextClassLoader$2(ForkJoinPool9Test.java:68)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
... 1 more
java.lang.Exception: JUnit test failure
at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:87)
at com.sun.javatest.regtest.agent.JUnitRunner.main(JUnitRunner.java:43)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:543)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
at java.base/java.lang.Thread.run(Thread.java:844)
- backported by
-
JDK-8177605 testCommonPoolThreadContextClassLoader fails with "Should throw SecurityException"
-
- Resolved
-
- relates to
-
CODETOOLS-7901914 Failure to find multiple @test in a single file
-
- Resolved
-
-
JDK-8172726 ForkJoin common pool retains a reference to the thread context class loader
-
- Resolved
-