| Summary: | Strange behaviour converting String to Dates if date is before Gregorian Switch | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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: | |||||||||||||||
| Bug Depends on: | |||||||||||||||
| Bug Blocks: | 320412 | ||||||||||||||
| Attachments: |
|
||||||||||||||
Created attachment 170990 [details]
Proposed patch.
Created attachment 173821 [details]
Patch
Created attachment 173904 [details]
Patch
Created attachment 174443 [details]
Subsequent patch for SDO TCK failures
Created attachment 174667 [details]
Subsequent patch for SDO TCK failures
Fixed, reviewed by bdoughan. Checked in to 2.2 and 2.1.1 streams. Resolved. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
Demonstrated by the following test case: QName qname = new QName("http://www.w3.org/2001/XMLSchema", "date"); SDOXMLHelper xmlHelper = (SDOXMLHelper) commonj.sdo.helper.XMLHelper.INSTANCE; Object dateObj = xmlHelper.getXmlConversionManager().convertObject("0001-01-01-03:00", java.util.Date.class, qname); System.out.println("got date: " + dateObj); Produces the following: Mon Jan 03 00:00:00 PST 1