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

javax.xml.datatype.DatatypeFactory has no clear description concerning invalid parameters values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0
    • xml
    • b58
    • generic
    • generic

      javax.xml.datatype.DatatypeFactory class has a bundle of factory methods creating Duration class object:
       - newDuration
       - newDurationDayTime
       - newDurationYearMonth
      Some factory methods may throw IllegalArgumentException.

      All incorrect input parameters should be described in javadoc if IllegalArgumentException should be thrown. For example it should be described that negative values for year or month in newDurationYearMonth(boolean, int, int) cause IllegalArgumentException.



      ###@###.### 2005-03-09 16:24:16 GMT

            nwalshsunw Norman Walsh (Inactive)
            ydanilev Yury Danilevich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: