[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug inetlib/22810] HTTPURLConnection.getHeaderField(int) throws excepti
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug inetlib/22810] HTTPURLConnection.getHeaderField(int) throws exception rather than returning null |
Date: |
16 Oct 2005 01:27:18 -0000 |
In HTTPURLConnection, getHeaderField(i) <a
href="http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLConnection.html#getHeaderField(int)">should
return null</a> if there are less than i+1 fields, according to Sun's
documentation and implementation. This merely requires a simple
"if(!i.hasNext()) return null;" in the beginning of the do/while loop at the
end of this method.
------- Comment #1 from from-classpath at savannah dot gnu dot org 2004-12-07
11:02 -------
Done.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22810
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug inetlib/22810] HTTPURLConnection.getHeaderField(int) throws exception rather than returning null,
gcc-bugzilla at gcc dot gnu dot org <=