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

Remove unused internal sun.net.www.protocol.jar.URLJarFileCallBack interface

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • core-libs
    • b07

      The sun.net.www.protocol.jar.URLJarFileCallBack is only referenced from the sun.net.www.protocol.jar.URLJarFile, which is an internal class of a non-exported package within the java.base module.

      The sun.net.www.protocol.jar.URLJarFile has a:

          public static void setCallBack(URLJarFileCallBack cb)

      method which takes a URLJarFileCallBack. But this method isn't referenced from any code in the JDK.

      Both this method as well as the unused sun.net.www.protocol.jar.URLJarFileCallBack interface can thus be removed.

      Historically, the sun.net.www.protocol.jar.URLJarFileCallBack was implemented from within the "deploy" module which is no longer present in mainline since several releases.

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

              Created:
              Updated:
              Resolved: