changeset 52979:106ad76acf31

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 a7e587822a2d
children f5d0926026ec
files test/jdk/java/time/test/java/time/format/TestNonIsoFormatter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/java/time/test/java/time/format/TestNonIsoFormatter.java	Tue Dec 04 12:26:49 2018 -0500
+++ b/test/jdk/java/time/test/java/time/format/TestNonIsoFormatter.java	Tue Dec 04 11:10:14 2018 -0800
@@ -191,7 +191,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));