Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8236028

[TESTBUG] Remove dependency of sun.tools.jar from appcds/JarBuilder

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • 15
    • hotspot
    • None
    • b02

      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();

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: