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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b02

      Description

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              iklam Ioi Lam
              Reporter:
              iklam Ioi Lam
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: