As a result of the change in 4456911, we need to ensure
that all URL handlers will throw NPE when
setRequestProperty () is called with a null key.
Currently, http does it right, but not ftp or file:
Note, the same also applies to addRequestProperty()
It is ok for getRequestProperty() to return null
with a null key value. The docs will be clarified
to make this explicit.
that all URL handlers will throw NPE when
setRequestProperty () is called with a null key.
Currently, http does it right, but not ftp or file:
Note, the same also applies to addRequestProperty()
It is ok for getRequestProperty() to return null
with a null key value. The docs will be clarified
to make this explicit.
- relates to
-
JDK-4456911 Javadoc does not specify null key value for URLConnection.setRequestProperty()
- Resolved