changeset 13533:b7cb35648c99

8214770: java/time/test/java/time/format/TestNonIsoFormatter.java failed in non-english locales. Reviewed-by: lancea, bpb
author naoto
date Tue, 04 Dec 2018 11:10:14 -0800
parents ec3a920b212a
children b337cf67e1bb
files test/java/time/test/java/time/format/TestNonIsoFormatter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/time/test/java/time/format/TestNonIsoFormatter.java	Tue May 14 15:03:10 2019 +0100
+++ b/test/java/time/test/java/time/format/TestNonIsoFormatter.java	Tue Dec 04 11:10:14 2018 -0800
@@ -190,7 +190,7 @@
         String mdStr = "-01-01";
         DateTimeFormatter dtf = new DateTimeFormatterBuilder()
             .appendPattern("GGGG y-M-d")
-            .toFormatter()
+            .toFormatter(Locale.ROOT)
             .withChronology(chrono);
         DateTimeFormatter dtfLenient = dtf.withResolverStyle(ResolverStyle.LENIENT);
         assertEquals(LocalDate.parse(lenient+mdStr, dtfLenient), LocalDate.parse(strict+mdStr, dtf));