--- a/langtools/test/jdk/jshell/ToolBasicTest.java Wed Jul 05 21:31:37 2017 +0200
+++ b/langtools/test/jdk/jshell/ToolBasicTest.java Mon Apr 04 10:31:20 2016 -0700
@@ -43,6 +43,7 @@
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
+import java.util.Locale;
import java.util.Scanner;
import java.util.function.BiFunction;
import java.util.function.Consumer;
@@ -463,7 +464,7 @@
(a) -> assertCommandCheckOutput(a, "printf(\"\")", assertStartsWith("| Error:\n| cannot find symbol"))
);
test((a) -> assertCommand(a, "printf(\"A\")", "", "", null, "A", ""));
- test(false, new String[]{"-startup", "UNKNOWN"}, "| File 'UNKNOWN' for start-up is not found.");
+ test(Locale.ROOT, false, new String[]{"-startup", "UNKNOWN"}, "| File 'UNKNOWN' for start-up is not found.");
} finally {
removeStartup();
}
@@ -478,9 +479,9 @@
(a) -> assertCommand(a, "a", "| Variable a of type double has value 10.0\n")
);
Path unknown = compiler.getPath("UNKNOWN.jar");
- test(true, new String[]{unknown.toString()},
- "| File '" + unknown
- + "' is not found: " + unresolvableMessage(unknown) + "\n");
+ test(Locale.ROOT, true, new String[]{unknown.toString()},
+ "| File " + unknown
+ + " is not found: " + unresolvableMessage(unknown) + "\n");
}
public void testReset() {