From ab8cdddb3a7faa1862bfb2a3586870b8a45e4a50 Mon Sep 17 00:00:00 2001 From: naoto Date: Tue, 4 Dec 2018 11:10:14 -0800 Subject: [PATCH] 8214770: java/time/test/java/time/format/TestNonIsoFormatter.java failed in non-english locales. Reviewed-by: lancea, bpb --- test/java/time/test/java/time/format/TestNonIsoFormatter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/java/time/test/java/time/format/TestNonIsoFormatter.java b/test/java/time/test/java/time/format/TestNonIsoFormatter.java index 240443f8f..4d033b2b4 100644 --- a/test/java/time/test/java/time/format/TestNonIsoFormatter.java +++ b/test/java/time/test/java/time/format/TestNonIsoFormatter.java @@ -190,7 +190,7 @@ public class TestNonIsoFormatter { 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)); -- GitLab