-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
11.0.2
-
None
System.out.println(
DateTimeFormatter.ofPattern("u-M-d").format(
DateTimeFormatter.ofPattern("Gy年M月d日")
.withChronology(JapaneseChronology.INSTANCE)
.parse("平成31年5月1日")));
System.out.println(
new SimpleDateFormat("Y-M-d", Locale.US).format(
new SimpleDateFormat("Gy年M月d日", new Locale("ja","JP","JP"))
.parse("平成31年5月1日")))
Expected Result:
java.time.format.DateTimeParseException
java.text.ParseException
Actual Result:
2019-5-1
2019-5-1
DateTimeFormatter.ofPattern("u-M-d").format(
DateTimeFormatter.ofPattern("Gy年M月d日")
.withChronology(JapaneseChronology.INSTANCE)
.parse("平成31年5月1日")));
System.out.println(
new SimpleDateFormat("Y-M-d", Locale.US).format(
new SimpleDateFormat("Gy年M月d日", new Locale("ja","JP","JP"))
.parse("平成31年5月1日")))
Expected Result:
java.time.format.DateTimeParseException
java.text.ParseException
Actual Result:
2019-5-1
2019-5-1
- relates to
-
JDK-8202088 Japanese new era implementation
- Resolved