The internal sun.tools.jar package is used here which leads to javac warning
http://hg.openjdk.java.net/jdk/jdk/file/b2e315938072/test/hotspot/jtreg/runtime/cds/appcds/JarBuilder.java#l199
warning: sun.tools.jar.Main is internal proprietary API and may be removed in a future release
This can be avoided by using
ToolProvider jarTool = ToolProvider.findFirst("jar").orElseThrow();
http://hg.openjdk.java.net/jdk/jdk/file/b2e315938072/test/hotspot/jtreg/runtime/cds/appcds/JarBuilder.java#l199
warning: sun.tools.jar.Main is internal proprietary API and may be removed in a future release
This can be avoided by using
ToolProvider jarTool = ToolProvider.findFirst("jar").orElseThrow();
- clones
-
JDK-8235970 [TESTBUG] Remove dependency of sun.tools.jar from RedefineClassHelper
- Resolved
- relates to
-
JDK-8185163 [TESTBUG] Many unnecessary @modules dependencies
- Open