Access to unsupported JDK-internal API¶
ID: java/jdk-internal-api-accessKind: problemSecurity severity: Severity: recommendationPrecision: highTags: - quality - maintainability - readabilityQuery suites: - java-security-and-quality.qls
Click to see the query in the CodeQL repository
Java 9 removes access to various unsupported JDK-internal APIs by default.
Recommendation¶
Examine the use of unsupported JDK-internal APIs and consider replacing them with supported APIs as recommended in the references.
References¶
Oracle JDK Documentation:Oracle JDK 9 Migration Guide.
OpenJDK Documentation:Java Dependency Analysis Tool,JEP 260: Encapsulate Most Internal APIs,JEP 261: Module System.