|
Quick Lists
|
|
Bug ID:
|
6591358
|
|
Votes
|
0
|
|
Synopsis
|
documentation error in URLConnection.setRequestProperty("accept", ...)
|
|
Category
|
java:classes_net
|
|
Reported Against
|
|
|
Release Fixed
|
7(b25)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
5-Very Low
|
|
Related Bugs
|
|
|
Submit Date
|
09-AUG-2007
|
|
Description
|
FULL PRODUCT VERSION :
JDK 1.6.0_02
ADDITIONAL OS VERSION INFORMATION :
irrelevalent
EXTRA RELEVANT SYSTEM CONFIGURATION :
irrelavent
A DESCRIPTION OF THE PROBLEM :
The Javadoc for java.net.URLConnection suggests using keyword "accept". RFC 2616 and the W3.org variant at http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html state the the parameter is called "Accept" with a leanding capital A.
I have not done experiments to see if the Java really wants the incorrect spelling, if both work, if only the official works, but seems to me Java should conform to the standard or document that it deviates.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
read the javadoc.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Should conform to RFC 2616.
ACTUAL -
docs suggest variant caps.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
ignore docs, and experiment to discover proper behaviour.
Posted Date : 2007-08-09 22:00:11.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
javadoc should probably be changed to use 'Accept'.
Posted Date : 2008-02-27 09:39:16.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |