This is an automated email from the ASF dual-hosted git repository.
psteitz pushed a commit to branch LANG_2_X
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/LANG_2_X by this push:
new 676005ead Drop test case that fails under JDK 1.8. Per 1.8
SimpleDateFormat Javadoc 'if the number of pattern letters is 2, the year is
truncated to 2 digits; otherwise it is interpreted as a number.'
676005ead is described below
commit 676005eadb7b1163ade3dbeb9ef991f504856ae1
Author: Phil Steitz <[email protected]>
AuthorDate: Sun Nov 16 11:43:42 2025 -0700
Drop test case that fails under JDK 1.8. Per 1.8 SimpleDateFormat Javadoc
'if the number of pattern letters is 2, the year is truncated to 2 digits;
otherwise it is interpreted as a number.'
---
src/test/java/org/apache/commons/lang/time/FastDateFormatTest.java | 7 -------
1 file changed, 7 deletions(-)
diff --git a/src/test/java/org/apache/commons/lang/time/FastDateFormatTest.java
b/src/test/java/org/apache/commons/lang/time/FastDateFormatTest.java
index d2e5202df..dc3c8f06a 100644
--- a/src/test/java/org/apache/commons/lang/time/FastDateFormatTest.java
+++ b/src/test/java/org/apache/commons/lang/time/FastDateFormatTest.java
@@ -226,13 +226,6 @@ public void testFormat() {
assertEquals("-04:00", fdf.format(cal2));
assertEquals("-04:00", fdf.format(millis2));
- String pattern = "GGGG GGG GG G yyyy yyy yy y MMMM MMM MM M" +
- " dddd ddd dd d DDDD DDD DD D EEEE EEE EE E aaaa aaa aa a zzzz
zzz zz z";
- fdf = FastDateFormat.getInstance(pattern);
- sdf = new SimpleDateFormat(pattern);
- assertEquals(sdf.format(date1), fdf.format(date1));
- assertEquals(sdf.format(date2), fdf.format(date2));
-
} finally {
Locale.setDefault(realDefaultLocale);
TimeZone.setDefault(realDefaultZone);