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

URLStreamHandler.setURL docs are incomplete

XMLWordPrintable

    • kestrel
    • sparc
    • solaris_2.5, solaris_2.6



      Name: saC57035 Date: 04/22/99


      In the JDK releases prior to 1.2 method setURL(URL u, String protocol,
      String host, int port, String file, String ref) was indeed able to
      change the protocol value of a given URL. Since JDK 1.2 this method
      just ignores the protocol value, leaving URL protocol as it was.
      I understand the reasons behind this change of behaviour, since
      URLStreamHandler should work with one particular type of protocol
      only. However, specs need to reflect this.

      ======================================================================

            shommel Scott Hommel (Inactive)
            savzan Stanislav Avzan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: