-
Bug
-
Resolution: Not an Issue
-
P2
-
None
-
13
ADDITIONAL SYSTEM INFORMATION :
$Â uname -a
Linux martin-tuxedo 5.0.0-15-generic #16-Ubuntu SMP Mon May 6 17:41:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ /home/martin/devel/jdk-13/bin/java -version
openjdk version "13-ea" 2019-09-17
OpenJDK Runtime Environment (build 13-ea+23)
OpenJDK 64-Bit Server VM (build 13-ea+23, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
Testing Java 13 build 23 with Apache Wicket led to a test failure in formatting dates with DateFormat.SHORT with Locale("nl", "NL"). The test was passing with Java 13 build 18 and earlier versions of Java (12, 11, ...).
REGRESSION : Last worked in version 13
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Execute the code below with Java 13 build 23 and any previous build:
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
01-05-11
ACTUAL -
01-05-2011
---------- BEGIN SOURCE ----------
import java.text.DateFormat;
import java.util.Calendar;
import java.util.Locale;
public class Java13Regression3
{
public static void main(String[] args)
{
final Locale DUTCH_LOCALE = new Locale("nl", "NL");
Calendar cal = Calendar.getInstance(DUTCH_LOCALE);
cal.clear();
cal.set(2011, Calendar.MAY, 1);
final DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT, DUTCH_LOCALE);
final String formatted = dateFormat.format(cal.getTime());
System.err.println(formatted);
// prints true for Java 13 build 18 and earlier (Java 12, 11, ...)
// But prints false for Java 13 build 23
System.out.println("Expected: " + "01-05-11".equals(formatted));
}
}
---------- END SOURCE ----------
FREQUENCY : always
$Â uname -a
Linux martin-tuxedo 5.0.0-15-generic #16-Ubuntu SMP Mon May 6 17:41:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ /home/martin/devel/jdk-13/bin/java -version
openjdk version "13-ea" 2019-09-17
OpenJDK Runtime Environment (build 13-ea+23)
OpenJDK 64-Bit Server VM (build 13-ea+23, mixed mode, sharing)
A DESCRIPTION OF THE PROBLEM :
Testing Java 13 build 23 with Apache Wicket led to a test failure in formatting dates with DateFormat.SHORT with Locale("nl", "NL"). The test was passing with Java 13 build 18 and earlier versions of Java (12, 11, ...).
REGRESSION : Last worked in version 13
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Execute the code below with Java 13 build 23 and any previous build:
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
01-05-11
ACTUAL -
01-05-2011
---------- BEGIN SOURCE ----------
import java.text.DateFormat;
import java.util.Calendar;
import java.util.Locale;
public class Java13Regression3
{
public static void main(String[] args)
{
final Locale DUTCH_LOCALE = new Locale("nl", "NL");
Calendar cal = Calendar.getInstance(DUTCH_LOCALE);
cal.clear();
cal.set(2011, Calendar.MAY, 1);
final DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT, DUTCH_LOCALE);
final String formatted = dateFormat.format(cal.getTime());
System.err.println(formatted);
// prints true for Java 13 build 18 and earlier (Java 12, 11, ...)
// But prints false for Java 13 build 23
System.out.println("Expected: " + "01-05-11".equals(formatted));
}
}
---------- END SOURCE ----------
FREQUENCY : always
- relates to
-
JDK-8221432 Update CLDR to version 35.1
- Resolved