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:
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. |