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

Use of Function<String, JarEntry> in JarFile hides capturing of the Jar-/ZipFile

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs

      Description

      Capturing lambdas are relatively expensive, and should be avoided if possible.

      Modelling all the private API points introduced by JDK-8189611 to accept something like a BiFunction<ZipFile, String, JarFileEntry> would allow using a single static non-capturing function to provide the needed indirection to jar.new JarFileEntry(name)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sherman Xueming Shen
                Reporter:
                redestad Claes Redestad
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: