URLJarFile$URLJarFileEntry need not clone the arrays returned by getCertificates() and getCodeSigners()

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 27
    • Component/s: core-libs

      sun.net.www.protocol.jar.URLJarFile$URLJarFileEntry class extends java.util.jar.JarEntry. URLJarFile$URLJarFileEntry overrides the getCertificates() and getCodeSigners() methods. The implementation in these overriden methods merely clone the arrays returned by the JarEntry counterparts. This cloning is not needed because these 2 methods on JarEntry already return cloned instances of those arrays. That detail of JarEntry is now specified in JDK-8370688.

            Assignee:
            Jaikiran Pai
            Reporter:
            Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: