Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315478

Summary: Strange behaviour converting String to Dates if date is before Gregorian Switch
Product: z_Archived Reporter: Rick Barkhouse <rick.barkhouse>
Component: EclipselinkAssignee: 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:
Description Flags
Proposed patch.
none
Patch
none
Patch
none
Subsequent patch for SDO TCK failures
none
Subsequent patch for SDO TCK failures none

Description Rick Barkhouse CLA 2010-06-02 15:58:57 EDT
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
Comment 1 Rick Barkhouse CLA 2010-06-03 13:42:48 EDT
Created attachment 170990 [details]
Proposed patch.
Comment 2 Rick Barkhouse CLA 2010-07-08 17:22:32 EDT
Created attachment 173821 [details]
Patch
Comment 3 Rick Barkhouse CLA 2010-07-09 15:30:06 EDT
Created attachment 173904 [details]
Patch
Comment 4 Rick Barkhouse CLA 2010-07-15 16:10:07 EDT
Created attachment 174443 [details]
Subsequent patch for SDO TCK failures
Comment 5 Rick Barkhouse CLA 2010-07-19 15:47:38 EDT
Created attachment 174667 [details]
Subsequent patch for SDO TCK failures
Comment 6 Rick Barkhouse CLA 2010-07-20 15:10:08 EDT
Fixed, reviewed by bdoughan.  Checked in to 2.2 and 2.1.1 streams.
Comment 7 Rick Barkhouse CLA 2010-07-20 15:10:53 EDT
Resolved.
Comment 8 Eclipse Webmaster CLA 2022-06-09 10:10:14 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink