changeset 8641:35ebec061d98

8129394: [TESTBUG] runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java failed with double option Reviewed-by: dholmes
author ddmitriev
date Wed, 24 Jun 2015 18:21:14 -0400
parents 8c563e200153
children b3fcf9a9e56f
files test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/DoubleJVMOption.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/runtime/CommandLine/OptionsValidation/common/optionsvalidation/DoubleJVMOption.java	Wed Jun 24 18:19:09 2015 -0400
+++ b/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);
     }
 
     /**