Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315478 - Strange behaviour converting String to Dates if date is before Gregorian Switch
Summary: Strange behaviour converting String to Dates if date is before Gregorian Switch
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Rick Barkhouse CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 320412
  Show dependency tree
 
Reported: 2010-06-02 15:58 EDT by Rick Barkhouse CLA
Modified: 2022-06-09 10:10 EDT (History)
0 users

See Also:


Attachments
Proposed patch. (20.36 KB, patch)
2010-06-03 13:42 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch (26.48 KB, patch)
2010-07-08 17:22 EDT, Rick Barkhouse CLA
no flags Details | Diff
Patch (26.43 KB, patch)
2010-07-09 15:30 EDT, Rick Barkhouse CLA
no flags Details | Diff
Subsequent patch for SDO TCK failures (8.90 KB, patch)
2010-07-15 16:10 EDT, Rick Barkhouse CLA
no flags Details | Diff
Subsequent patch for SDO TCK failures (11.55 KB, patch)
2010-07-19 15:47 EDT, Rick Barkhouse CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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