mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-30 13:08:24 +00:00
8129394: [TESTBUG] runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java failed with double option
Reviewed-by: dholmes
This commit is contained in:
parent
ef8ad5ea95
commit
fff2d77827
@ -25,6 +25,7 @@ package optionsvalidation;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
|
||||
public class DoubleJVMOption extends JVMOption {
|
||||
|
||||
@ -109,7 +110,7 @@ public class DoubleJVMOption extends JVMOption {
|
||||
}
|
||||
|
||||
private String formatValue(double value) {
|
||||
return String.format("%f", value);
|
||||
return String.format(Locale.US, "%f", value);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user