Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8021787

javax.xml.datatype.XMLGregorianCalendar.getMonth() return is documented wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 6.0, 5.0, 7u1
    • xml
    • b130
    • windows_7

      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.

            snikandrova Svetlana Nikandrova (Inactive)
            webbuggrp Webbug Group
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: