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

Compatibility issue with URL.getProtocol()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • rc1
    • generic
    • generic
    • Verified


      java.net.URL.getProtocol() behaves differently in merlin-beta3
      when compared to previous releases.

      Prior to merlin getProtocol() would return the scheme in lower case. In
      merlin it returns the scheme in the case provided to the constructor.
      This creates a potential compatibility issue with applications that
      assume the schem is in lower case (eg: appletviewer grants additional
      SocketPermissions if the scheme is "file". It thus behaves differently
      with inputs such as FILE:foo.html).

      The change arose because of the fix 4445743. Prior to this fix
      the component-wise constructors could not handle a scheme that didn't
      match the protocol handler exactly.

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: