# HG changeset patch # User naoto # Date 1515523215 28800 # Tue Jan 09 10:40:15 2018 -0800 # Node ID 576d55409cc478afa47c52253d6e2c7d24d64040 # Parent 9a29aa153c202c4237c815f51d451def4de6cef1 [mq]: 8194148 diff --git a/test/jdk/java/util/Locale/bcp47u/FormatTests.java b/test/jdk/java/util/Locale/bcp47u/FormatTests.java --- a/test/jdk/java/util/Locale/bcp47u/FormatTests.java +++ b/test/jdk/java/util/Locale/bcp47u/FormatTests.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -24,7 +24,7 @@ /* * * @test - * @bug 8176841 + * @bug 8176841 8194148 * @summary Tests *Format class deals with Unicode extensions * correctly. * @modules jdk.localedata @@ -73,6 +73,7 @@ private static final String NUM_SINH = "\u0de7\u0de8,\u0de9\u0dea\u0deb.\u0dec\u0ded\u0dee\u0def"; private static final Date testDate = new Calendar.Builder() + .setCalendarType("gregory") .setDate(2017, 7, 10) .setTimeOfDay(15, 15, 0) .setTimeZone(AMLA) diff --git a/test/jdk/java/util/Locale/bcp47u/SymbolsTests.java b/test/jdk/java/util/Locale/bcp47u/SymbolsTests.java --- a/test/jdk/java/util/Locale/bcp47u/SymbolsTests.java +++ b/test/jdk/java/util/Locale/bcp47u/SymbolsTests.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -24,11 +24,11 @@ /* * * @test - * @bug 8176841 + * @bug 8176841 8194148 * @summary Tests *FormatSymbols class deals with Unicode extensions * correctly. * @modules jdk.localedata - * @run testng/othervm -Djava.locale.providers=CLDR FormatTests + * @run testng/othervm -Djava.locale.providers=CLDR SymbolsTests */ import static org.testng.Assert.assertEquals; @@ -66,11 +66,11 @@ return new Object[][] { // Locale, expected decimal separator, expected grouping separator - {RG_AT, ",", "."}, - {Locale.US, ".", ","}, + {RG_AT, ',', '.'}, + {Locale.US, '.', ','}, // -nu & -rg mixed. -nu should win - {Locale.forLanguageTag("ar-EG-u-nu-latn-rg-mazzzz"), ".", ","}, + {Locale.forLanguageTag("ar-EG-u-nu-latn-rg-mazzzz"), '.', ','}, }; }