| Summary: | MARSHALL OF "GMONTH" SCHEMA TYPE FROM XMLGREGORIANCALENDAR INCORRECT | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Rick Barkhouse <rick.barkhouse> | ||||||
| Component: | Eclipselink | Assignee: | Rick Barkhouse <rick.barkhouse> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 188268 [details]
Proposed patch.
Fixed, reviewed by bdoughan. Reopened due to additional unmarshalling and SDO errors. Created attachment 188548 [details]
Additional patch.
Fixed. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
Given a class as such: public class MyCal { @javax.xml.bind.annotation.XmlSchemaType(namespace="http://www.w3.org/2001/XMLSchema", name="gMonth") public XMLGregorianCalendar cal; } the data is marshalled incorrectly an an unmarshall exception occurs on the receiving end. The Sun JAXB appears to do it correctly, see analysis below and the simple code shown in testcase details. Eclipselink JAXB <?xml version="1.0" encoding="UTF-8"?> <ns0:CalendarTest xmlns:ns0="http://marshalltestservice.org/types2"><cal>--05Z</cal></ns0:CalendarTest> Sun JAXB <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:CalendarTest xmlns:ns2="http://marshalltestservice.org/types2"><cal>--05--Z</cal></ns2:CalendarTest> Note the Eclipselink JAXB is missing trailing dashes, leading to this unmarshall exception: