Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] Fix for bug 264749 - JAXB2.0: Add support for converting XMLGregorianCalendar using a schema type QName

Fix submitted for the following enhancement: <>

Description: Added support for conversion using a schema type QName, aligning with existing Date/Calendar conversion functionality.


xcm.convertObject(xmlGregCal, String.class, XMLConstants.G_DAY_QNAME);
// returns "---17+03:00"

xcm.convertStringToXMLGregorianCalendar(aString, XMLConstants.DATE_QNAME);
// returns an XMLGregorianCalendar with only the year/month/day fields set

Test Cases: New tests added to XMLGregorianCalendarTestCases

Patch attached to bug, reviewed by Blaise.

Oracle <>
Rick Barkhouse | Software Developer, EclipseLink | 613.288.4613
Oracle Development
45 O'Connor Street, Suite 400 | Ottawa, Ontario K1P 1A4

Back to the top