Skip to content

scala3-library_3-3.3.4.jar is using jdk.unsupported apis and not compatible with Java 17/21 #23048

Closed as duplicate of#9013
@ilapavuluri

Description

@ilapavuluri

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:jdkIssues tied to artifacts published under a particular jdkcompat:java:jepIssues corresponding to a JEP (JDK Enhancement Proposal)itype:invalidstat:duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions