bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22804] HttpURLConnection.getHeaderFields() returns String


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22804] HttpURLConnection.getHeaderFields() returns String->String rather than String->List
Date: 16 Oct 2005 01:27:16 -0000

URLConnection.getHeaderFields() is specified to return a Map from Strings to
Lists, since there can be more than one header field with the same key (see
http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLConnection.html#getHeaderFields()).
Sun's implementation (ver 1.4.2_04) works that way. The Classpath
implementation returns a Map from Strings to Strings.


------- Comment #1 from from-classpath at savannah dot gnu dot org  2004-12-01 
00:06 -------
Note that this bug also applies to Classpath's HttpURLConnection implementation
-- but given that the old Classpath impl has just been replaced by the inetlib
impl, that's probably obvious ;-)


------- Comment #2 from from-classpath at savannah dot gnu dot org  2004-12-01 
07:58 -------
I have just added some mauve testcases based on your testcase for this bug. It
showed that the old and the new implementation are both buggy. Thanks for your
report.
I think Chris will fix this bug soon.


------- Comment #3 from from-classpath at savannah dot gnu dot org  2004-12-01 
12:12 -------
Fixed in CVS. Will be in next release of GNU classpath, 0.13.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22804





reply via email to

[Prev in Thread] Current Thread [Next in Thread]