URLConnection.getRequestProperties() doesn't throw as promised

Martin Buchholz martinrb at google.com
Tue May 18 19:15:56 PDT 2010


Hi net-dev gang,

A colleague reports that:

URLConnection.getRequestProperties() promises to throw an
IllegalStateException when invoked on a connected instance. But Java 6
returns a valid map.

Can you get either the spec or the implementation fixed so that the two agree?

Thanks,

Martin



More information about the net-dev mailing list