commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] [bugs #11233] HTTPURLConnection.getHeaderField(int) throws e


From: Benja Fallenstein
Subject: [commit-cp] [bugs #11233] HTTPURLConnection.getHeaderField(int) throws exception rather than returning null
Date: Mon, 06 Dec 2004 18:18:19 -0500
User-agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko)

This mail is an automated notification from the bugs tracker
 of the project: classpath.




/**************************************************************************/
[bugs #11233] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11233>
Project: classpath
Submitted by: Benja Fallenstein
On: Mon 12/06/2004 at 23:07

Category:  inetlib
Severity:  5 - Average
Resolution:  None
Privacy:  Public
Assigned to:  None
Status:  Open
Platform Version:  None


Summary:  HTTPURLConnection.getHeaderField(int) throws exception rather than 
returning null

Original Submission:  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.











For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11233>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

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