Hitachi

uCosminexus Application Server XML Processor User Guide


A.3 Differences in the operation of the javax.xml.datatype package

The following table describes the differences in the operation of the javax.xml.datatype package:

Table A‒5: Differences in the operation of the javax.xml.datatype package (Comparison of cases when JAXP1.3 is used on J2SE 5.0 and JAXP1.4 is used on Java SE 6)

No.

Condition

Execution result

In J2SE 5.0

In Java SE 6

1

Content of the Duration object returned by the newDurationYearMonth(long) method of the javax.xml.datatype.DatatypeFactory class

Data other than year and month is also maintained.

Data other than year and month is not maintained.

2

When null is specified in the parameter of the equals method of the javax.xml.datatype.Duration class

NullPointerException occurs.

false is returned.

NullPointerException does not occur.