Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8270050 | 18 | Jan Lahoda | P3 | Resolved | Fixed | b06 |
JDK-8270726 | 17.0.1 | Jan Lahoda | P3 | Resolved | Fixed | b03 |
Trying to compile a class that subclasses java.util.concurrent.ForkJoinPool with --release 8 causes the following error:
> javac --release 8 -processorpath demo demo/MyPool.java
error: cannot access Contended
class file for sun.misc.Contended not found
1 error
I can confirm this happens with javac from JDK 11.0.10 and JDK 16.
This can be reproduce with the attached demo.jar:
jar xf demo.jar
javac --release 8 -processorpath demo demo/MyPool.java
As a side note, discovering which Java sources triggered this error was not straight forward as the error message does not mention it (note lack of "MyPool" in the error message).
> javac --release 8 -processorpath demo demo/MyPool.java
error: cannot access Contended
class file for sun.misc.Contended not found
1 error
I can confirm this happens with javac from JDK 11.0.10 and JDK 16.
This can be reproduce with the attached demo.jar:
jar xf demo.jar
javac --release 8 -processorpath demo demo/MyPool.java
As a side note, discovering which Java sources triggered this error was not straight forward as the error message does not mention it (note lack of "MyPool" in the error message).
- backported by
-
JDK-8270050 class file for sun.misc.Contended not found
- Resolved
-
JDK-8270726 class file for sun.misc.Contended not found
- Resolved
- relates to
-
JDK-8258421 (jdeprscan) tools/jdeprscan/tests/jdk/jdeprscan/TestRelease.java failed with "error: cannot access jdk.internal.ValueBased"
- Resolved
(1 links to)