Re: URLConnection.getRequestProperties() doesn't throw as promised

2010-05-19 Thread Alan Bateman
Jesse Wilson wrote: On Wed, May 19, 2010 at 12:55 AM, Alan Bateman mailto:alan.bate...@oracle.com>> wrote: This isn't my area, but I just did a quick test with a http URL and IllegalStateException is thrown (with both 6 and 7). Any chance that connect hasn't been invoked? Or perhaps

Re: URLConnection.getRequestProperties() doesn't throw as promised

2010-05-19 Thread Alan Bateman
Martin Buchholz wrote: 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?

URLConnection.getRequestProperties() doesn't throw as promised

2010-05-18 Thread Martin Buchholz
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