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

Present or not present anomaly with MR JARs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Other
    • Icon: P3 P3
    • None
    • 9
    • core-libs
    • None

      Consider a JAR file with the following entries:

      META-INF/
      META-INF/MANIFEST.MF
      foo
      META-INF/versions/
      META-INF/versions/9/
      META-INF/versions/9/bar
      META-INF/versions/9/foo

      The main manifest has "Multi-Release: true".

      If the JAR file is opened with the new constructor and JarFile.Release.RUNTIME then the contents of the JAR file that the entries or stream methods reports is:

      META-INF/
      META-INF/MANIFEST.MF
      foo

      However, if we use JarFile's getEntry("bar") then bar will be found.

      We need to see how this anomaly can be fixed without introducing a performance issue.

            sdrach Steve Drach (Inactive)
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: