FULL PRODUCT VERSION :
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
The API Documentation for
javax.xml.datatype.XMLGregorianCalendar.getMonth() is wrong.The return is not the year but the month.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Have a look at
http://download.java.net/jdk8/docs/api/javax/xml/datatype/XMLGregorianCalendar.html#getMonth%28%29
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
It should be:
Returns:
month of this XMLGregorianCalendar.
ACTUAL -
It is:
Returns:
year of this XMLGregorianCalendar.
REPRODUCIBILITY :
This bug can be reproduced always.
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]
A DESCRIPTION OF THE PROBLEM :
The API Documentation for
javax.xml.datatype.XMLGregorianCalendar.getMonth() is wrong.The return is not the year but the month.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Have a look at
http://download.java.net/jdk8/docs/api/javax/xml/datatype/XMLGregorianCalendar.html#getMonth%28%29
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
It should be:
Returns:
month of this XMLGregorianCalendar.
ACTUAL -
It is:
Returns:
year of this XMLGregorianCalendar.
REPRODUCIBILITY :
This bug can be reproduced always.
- duplicates
-
JDK-8149090 XMLGregorianCalendar.getMonth javadoc says @returns year of this XMLGregorianCalendar
- Closed