bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22942] java.text.SimpleDateFormat parse(String) fails whe


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22942] java.text.SimpleDateFormat parse(String) fails when String is including "GMT"
Date: 16 Oct 2005 01:27:44 -0000

'public Date parse (String dateStr, ParsePosition pos)' calls 
computeOffset' method at line 1002 to check GMT timezone style. When the result
isn't null, 'pos' aren't changed in GNU Classpath 0.15. 'computeOffset' method
have to return the length of matched string.


------- Comment #1 from from-classpath at savannah dot gnu dot org  2005-05-16 
03:10 -------
Thanks for the report. I've looked into this, and I think I've got it fixed
now. I'll be sending in a patch shortly.

There were actually several bugs with computeOffset.


------- Comment #2 from from-classpath at savannah dot gnu dot org  2005-05-17 
17:03 -------
This bug is also triggered by the unit tests in StatCVS.  I've added a Mauve
test case that is equivalent to the failing test code in StatCVS.  


------- Comment #3 from from-classpath at savannah dot gnu dot org  2005-05-18 
01:13 -------
Fixed.


------- Comment #4 from from-classpath at savannah dot gnu dot org  2005-05-18 
08:35 -------
Thanks.  All (171) junit tests in StatCVS pass now, so that is a little bit of
progress.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22942





reply via email to

[Prev in Thread] Current Thread [Next in Thread]