Before JarFile was enhanced to support multi-release jars, the entries and stream methods would create an Enumeration or a Stream over all of the entries in the JarFile. After adding support for multi-release jars, if the JarFile was constructed with versioning enabled (e.g. with parameter Release.RUNTIME), the Enumeration or Stream only returned a view of the versioned entries.
This new behavior needs to be reverted back to the way it was, iterating over all the entries. New methods need to be created to provide a versioned view of of the entries, perhaps named versionedEntries and versionedStream.
This change needs to be coordinated with changing the jar scanning mechanism of the module system.
This change should fix, or make moot the issues identified in JDK-8156999 and JDK-8150678.