DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCCORE-709
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Core

DateStringConverter is prone to failure

Created: 06/May/11 10:28 AM   Updated: 09/May/11 09:58 AM   Resolved: 06/May/11 10:41 AM
Component/s: Java Types
Affects Version/s: 2.2.3, 3.0.0.m3
Fix Version/s: 3.0.0.m4

 Description  « Hide
DateStringConverter relies on behaviour in javadocs, and this doesn't work in practice certainly on recent JDK's. Better way would be to use a SimpleDateFormat to actually format the string like the javadoc says, and then use the same SimpleDateFormat to do the conversion back to Date

Andy Jefferson added a comment - 06/May/11 10:41 AM
Now uses SimpleDateFormat

Andy Jefferson made changes - 06/May/11 10:41 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 09/May/11 09:58 AM
Status Resolved [ 5 ] Closed [ 6 ]