code fix
by
mrglavas
:

Corrected the default implementations of DatatypeFactory.newDurationYearMonth()
and DatatypeFactory.newDurationDayTime() so that they behave according to the
JAXP specification. These methods must reject lexical values which are not valid
instances of xs:yearMonthDuration and xs:dayTimeDuration. They were not doing so
before.