scala3-library_3-3.3.4.jar is using jdk.unsupported apis and not compatible with Java 17/21 #23048
Labels
area:jdk
Issues tied to artifacts published under a particular jdk
compat:java:jep
Issues corresponding to a JEP (JDK Enhancement Proposal)
itype:invalid
stat:duplicate
Hi Team,
I am using scala3-library_3-3.3.4.jar in my application, when I run "jdeps --multi-release 21 -jdkinternals" scan I am getting below report:
scala3-library_3-3.3.4.jar -> jdk.unsupported
scala.runtime.LazyVals$ -> sun.misc.Unsafe JDK internal API (jdk.unsupported)
Warning: JDK internal APIs are unsupported and private to JDK implementation that are
subject to be removed or changed incompatibly and could break your application.
Please modify your code to eliminate dependence on any JDK internal APIs.
For the most recent update on JDK internal API replacements, please check:
https://wiki.openjdk.org/display/JDK8/Java+Dependency+Analysis+Tool
JDK Internal API Suggested Replacement
sun.misc.Unsafe See https://openjdk.org/jeps/260
Based on this report it looks like scala3-library_3-3.3.4.jar is not compatible with Java 17/21, correct me if I miss anything.
Appreciate any help on this.
The text was updated successfully, but these errors were encountered: