RFR: 8157524 Revert JarFile methods "entries" and "stream" to Java 8 behavior

Claes Redestad claes.redestad at oracle.com
Fri Jul 15 23:07:34 UTC 2016


Hi,

this looks good to me, and it makes sense to me that upgrading to Java
9 and using this API on a Multi-release JAR doesn't suddenly filter out
entries.

/Claes

On 2016-07-15 23:17, Steve Drach wrote:
> Hi,
>
> Please review this change to JarFile that reverts JarFile::stream and JarFile::entries to JDK 8 behavior.  The code is identical to that in JDK 8 except line 504 in JarEntryIterator that now uses a different constructor to create a JarFileEntry.  I also added some implementation notes explaining how to create a versionedStream and a versionedEntries method.
>
> issue: https://bugs.openjdk.java.net/browse/JDK-8157524 <https://bugs.openjdk.java.net/browse/JDK-8157524>
> webrev: http://cr.openjdk.java.net/~sdrach/8157524/webrev/index.html <http://cr.openjdk.java.net/~sdrach/8157524/webrev/index.html>
>
> Thanks,
> Steve
>


More information about the core-libs-dev mailing list