You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2012/09/25 04:02:22 UTC
svn commit: r1389681 -
/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java
Author: sebb
Date: Tue Sep 25 02:02:21 2012
New Revision: 1389681
URL: http://svn.apache.org/viewvc?rev=1389681&view=rev
Log:
Document why tests seem to fail
Modified:
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java
Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java?rev=1389681&r1=1389680&r2=1389681&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java (original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java Tue Sep 25 02:02:21 2012
@@ -253,7 +253,9 @@ public class FastDateParserTest {
try {
checkParse(locale, cal, sdf, fdf);
} catch(ParseException ex) {
- // TODO: why do ja_JP_JP, hi_IN, th_TH, and th_TH_TH fail?
+ // TODO: are these Java bugs?
+ // ja_JP_JP, th_TH, and th_TH_TH fail with both eras because the generated era name does not match
+ // ja_JP_JP fails with era BC because it converts to -2002
System.out.println("Locale "+locale+ " failed with "+format+" era "+(eraBC?"BC":"AD")+"\n" + trimMessage(ex.toString()));
}
}