-
Bug
-
Resolution: Other
-
P3
-
None
-
9
-
None
-
Verified
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.
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.
- relates to
-
JDK-8157524 Revert JarFile methods "entries" and "stream" to Java 8 behavior
-
- Resolved
-