Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366183 - reqif10.model should use GregorianCalendar instead of javax.xml.datatype.XMLGregorianCalendar
Summary: reqif10.model should use GregorianCalendar instead of javax.xml.datatype.XMLG...
Status: RESOLVED FIXED
Alias: None
Product: MDT.RMF
Classification: Modeling
Component: Reqif-1.0 (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P2 normal (vote)
Target Milestone: 0.9.0   Edit
Assignee: Mark Broerkens CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 09:06 EST by Mark Broerkens CLA
Modified: 2013-10-07 11:35 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Broerkens CLA 2011-12-09 09:06:46 EST
The reqif10.mode should be free of XML specific concepts. This simplifies the serialization to alternative formats. Therefore javax.xml.datatype.XMLGregorianCalendar should not be used.

I propose using the ecore data type EDate (java.util.Date) instead.
Comment 1 Mark Broerkens CLA 2012-04-12 20:37:08 EDT
EDate is not an option since it doesn't store the required timezone.
Gregorian calendar could be an option.
Comment 2 Mark Broerkens CLA 2013-10-02 05:10:02 EDT
we will go for GregorianCalendar
Comment 3 Mark Broerkens CLA 2013-10-07 11:35:09 EDT
The XMLGregorianCalendar is replaced by GregorianCalendar.
This avoids usage of javax.xml... and DatatypeFactory which depend on the installed XML parser.