Details
-
Bug
-
Resolution: Fixed
-
P4
-
8, 14, 15
-
b15
-
generic
-
generic
-
Verified
Description
A DESCRIPTION OF THE PROBLEM :
The method URLConnection.setRequestProperty(String, String) throws an IllegalAccessError. This appears to be an ancient remnant which was apparently missed byJDK-4082758.
The expected exception type is an IllegalStateException.
---------- BEGIN SOURCE ----------
// On Windows:
URLConnection c = new URL("file:///C:/").openConnection()
c.connect()
c.setRequestProperty("test", "test")
---------- END SOURCE ----------
The method URLConnection.setRequestProperty(String, String) throws an IllegalAccessError. This appears to be an ancient remnant which was apparently missed by
The expected exception type is an IllegalStateException.
---------- BEGIN SOURCE ----------
// On Windows:
URLConnection c = new URL("file:///C:/").openConnection()
c.connect()
c.setRequestProperty("test", "test")
---------- END SOURCE ----------