RFR (JAXP): 8021787: javax.xml.datatype.XMLGregorianCalendar.getMonth() return is documented wrong

huizhe wang huizhe.wang at oracle.com
Mon Jul 18 17:34:24 UTC 2016

Hi Svetlana,

Thanks for working on these bugs. The change is correct. It would be 
better to say: "Returns the month of this calendar", in both the returns 
tag and the description (not number of month).

While we are in this class, it would be good to at least fix the missing 
@returns tags in a number of methods, e.g. getDay, getTimezone, getHour, 
getMinute, toGregorianCalendar. Also, it @Override equals, hashCode, 
toString, and clone.



On 7/18/2016 8:49 AM, Svetlana Nikandrova wrote:
> Hello all,
> please review this javadoc fix for 
> javax.xml.datatype.XMLGregorianCalendar.getMonth()
> Webrev:
> http://cr.openjdk.java.net/~snikandrova/8021787/webrev.00/ 
> <http://cr.openjdk.java.net/%7Esnikandrova/8021787/webrev.00/>
> JBS:
> https://bugs.openjdk.java.net/browse/JDK-8021787
> Thank you,
> Svetlana

More information about the core-libs-dev mailing list