Hey folks,

I had a look at the JAXP 1.3 datatype API/Impl part of the donation and noticed a few bugs. Firstly, the reset() method on XMLGregorianCalendarImpl seems to be intentionally not implemented. I am not sure why this was? Secondly, the compare() method on DurationImpl does not use the comparison algorithm outlined in the Schema 1.0 spec [1]. This causes comparison to fail for a number of cases (e.g. 'P30D' and 'P1M'). Lastly, there is a ClassCastException that would be caused in XMLGregorianCalendarImpl.compare() since we are assuming that the XMLGregorianCalendar parameter passed in is of type XMLGregorianCalendarImpl which might not be the case.
 
I will be willing to work on fixing these bugs.

Thanks

[1] http://www.w3.org/TR/2004/WD-xmlschema11-2-20040716/#duration

Ankit Pasricha
XML Parser Development
IBM Toronto Lab
8200 Warden Avenue, Ontario L6G 1C7
Phone: (905) 413 4941
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to