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

pack200 must support Multi-Release Jars

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8u60
    • core-libs
    • b96
    • generic
    • generic
    • Verified

      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
        2. mversion-webrev.zip
          94 kB
        3. mv-jar.patch
          8 kB

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

              Created:
              Updated:
              Resolved: