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

Revert JarFile methods "entries" and "stream" to Java 8 behavior

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sdrach Steve Drach (Inactive)
                Reporter:
                sdrach Steve Drach (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: