Access to unsupported JDK-internal API -- CodeQL query help documentation CodeQL docs
Access to unsupported JDK-internal API
ID: java/jdk-internal-api-access Kind: problem Security severity: Severity: recommendation Precision: high Tags: - quality - maintainability - readability Query suites: - java-code-quality.qls - 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 .