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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6.0, 5.0, 7u1
    • Fix Version/s: 9
    • Component/s: xml
    • Subcomponent:
    • Resolved In Build:
      b130
    • OS:
      windows_7

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: