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

pack200 must support Multi-Release Jars

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u60
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b96
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      multi-versioned Jars are being implemented which potentially will contain multiple classes or interfaces with the FullyQualifiedName but implemented differently, all existing under different paths within an archive.

      Pack200 does not treat these paths differently, as it was designed to treat the whole jar as an
      archive containing unique classes.

      The gory details are documented in JDK-7131266, a test case is attached which exhibits the problem.

      There are several ways to handle this:
      1. treat each version within a jar-file as a segment and concatenate them.
      2. move any duplicates to its own segment (needs to be done carefully).
      1. doit
        2 kB
        Kumar Srinivasan
      2. mv-jar.patch
        8 kB
        Kumar Srinivasan

        Issue Links

          Activity

          Hide
          ksrini Kumar Srinivasan added a comment - - edited
          Attached an easy to use reproducer which takes into account the current proposed META-INF format
          Show
          ksrini Kumar Srinivasan added a comment - - edited Attached an easy to use reproducer which takes into account the current proposed META-INF format
          Hide
          ksrini Kumar Srinivasan added a comment -
          Attached a proto-type of a fix with a regression test for jdk8u-dev/jdk, the fix creates discrete segments for each versioned paths under META-INF
          Show
          ksrini Kumar Srinivasan added a comment - Attached a proto-type of a fix with a regression test for jdk8u-dev/jdk, the fix creates discrete segments for each versioned paths under META-INF
          Hide
          ksrini Kumar Srinivasan added a comment -
          attached webrev for 8u-dev
          Show
          ksrini Kumar Srinivasan added a comment - attached webrev for 8u-dev
          Hide
          ksrini Kumar Srinivasan added a comment - - edited
          Show
          ksrini Kumar Srinivasan added a comment - - edited Under review at: http://cr.openjdk.java.net/~ksrini/8066272
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/74bc089000c8
          User: ksrini
          Date: 2015-11-21 00:44:32 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/74bc089000c8 User: ksrini Date: 2015-11-21 00:44:32 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/74bc089000c8
          User: lana
          Date: 2015-12-10 00:27:01 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/74bc089000c8 User: lana Date: 2015-12-10 00:27:01 +0000

            People

            • Assignee:
              ksrini Kumar Srinivasan
              Reporter:
              ksrini Kumar Srinivasan
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: