Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit 54f7732

Browse files
committedJun 10, 2020
8246721: java/util/Locale/LocaleProvidersRun.java failed on Windows platforms
Reviewed-by: rriggs
1 parent b03766f commit 54f7732

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎test/jdk/java/util/Locale/LocaleProvidersRun.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@
2626
* @bug 6336885 7196799 7197573 7198834 8000245 8000615 8001440 8008577
2727
* 8010666 8013086 8013233 8013903 8015960 8028771 8054482 8062006
2828
* 8150432 8215913 8220227 8228465 8232871 8232860 8236495 8245241
29+
* 8246721
2930
* @summary tests for "java.locale.providers" system property
3031
* @library /test/lib
3132
* @build LocaleProviders
3233
* providersrc.spi.src.tznp
3334
* providersrc.spi.src.tznp8013086
3435
* @modules java.base/sun.util.locale
3536
* java.base/sun.util.locale.provider
36-
* @run main LocaleProvidersRun
37+
* @run main/othervm -Djdk.lang.Process.allowAmbiguousCommands=false LocaleProvidersRun
3738
*/
3839

3940
import java.util.Locale;
@@ -164,6 +165,8 @@ public static void main(String[] args) throws Throwable {
164165
testRun("HOST", "bug8232860Test", "", "", "");
165166

166167
//testing 8245241 fix.
168+
//jdk.lang.Process.allowAmbiguousCommands=false is needed for properly escaping
169+
//double quotes in the string argument.
167170
testRun("FOO", "bug8245241Test",
168171
"Invalid locale provider adapter \"FOO\" ignored.", "", "");
169172
}

0 commit comments

Comments
 (0)
This repository has been archived.