[jira] Commented: (JDO-547) api2
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Commented: (JDO-547) api2




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Commented: (JDO-547) api2  
Craig Russell (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-19-07 12:11 AM


[ https://issues.apache.org/jira/brow...action_12543430 ]

Craig Russell commented on JDO-547:
-----------------------------------

Looks good.

> api2 ObjectIdentityTest.testStringNullDateConstructor fails due to unexpec
ted date format in different locales
> --------------------------------------------------------------------------
------------------------------------
>
>                 Key: JDO-547
>                 URL: https://issues.apache.org/jira/browse/JDO-547
>             Project: JDO
>          Issue Type: Bug
>          Components: api2, api2-legacy
>    Affects Versions: JDO 2 maintenance release 1
>            Reporter: Michael Bouschen
>            Assignee: Michael Bouschen
>             Fix For: JDO 2 maintenance release 1
>
>         Attachments: JDO-547.patch
>
>
> Method testStringNullDateConstructor of api2 test class ObjectIdentityTest
 uses a DateFormat instance obtained by DateFormat.getInstance(). This retur
ns the default date/time formatter which is then used to parse a date in for
mat "M/d/yy h:mm a".
> This does not work in case the default date/time formatter uses a format d
ifferent from "M/d/yy h:mm a", because of a different locale. E.g. the forma
t for the German locale is "dd.MM.yy HH:mm". This leads to an exception when
 parsing the date string:
> Testcase: testStringNullDateConstructor(javax.jdo.identity.ObjectIdentityT
est):	Caused an ERROR
> Error parsing Date string "10/9/2007 4:26 PM" at position 2 using date for
mat "dd.MM.yy HH:mm".
> javax.jdo.JDOUserException: Error parsing Date string "10/9/2007 4:26 PM" at posit
ion 2 using date format "dd.MM.yy HH:mm".

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:36 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register