8129394: [TESTBUG] runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java failed with double option
Reviewed-by: dholmes
--- a/hotspot/test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/DoubleJVMOption.java Wed Jun 24 18:19:09 2015 -0400
+++ b/hotspot/test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/DoubleJVMOption.java Wed Jun 24 18:21:14 2015 -0400
@@ -25,6 +25,7 @@
import java.util.ArrayList;
import java.util.List;
+import java.util.Locale;
public class DoubleJVMOption extends JVMOption {
@@ -109,7 +110,7 @@
}
private String formatValue(double value) {
- return String.format("%f", value);
+ return String.format(Locale.US, "%f", value);
}
/**