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

ToolBox should support extracting classes from a JavaFileManager/Location

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P2 P2
    • 9
    • 9
    • tools
    • b40
    • Verified

        Jigsaw uses a new image file format instead of rt.jar.
        http://openjdk.java.net/jeps/220

        But javac needs to be able to support system classes in .jar files for -target <= 8, and as such, we need to be able to generate lookalike rt.jar files for testing.

        It is proposed to add a new method to the JarTask in the ToolBox test framework.
            extract(JavaFileManager fm, Location l, String... paths)
        The paths can be a specific path (e.g. java/lang/Object.class) or the contents of a package (e.g. java/lang/*) or the contents of a package and its subpackages (e.g. java/lang/**)

              jjg Jonathan Gibbons
              jjg Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: