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.
- relates to
-
JDK-4445743 URL constructor throws MalformedURLException with upper case letters
-
- Closed
-