## modules/graphics/src/main/java/javafx/scene/paint/Color.java

Print this page

    rev 4839 : RT-2529: Locale specific runtime errors (Turkish)

    @@ -25,10 +25,11 @@

     package javafx.scene.paint;

     import javafx.animation.Interpolatable;
     import java.util.HashMap;
    +import java.util.Locale;
     import java.util.Map;
     import com.sun.javafx.Utils;
     import com.sun.javafx.beans.annotations.Default;
     import com.sun.javafx.tk.Toolkit;

    @@ -386,11 +387,11 @@
             }
             if (colorString.isEmpty()) {
                 throw new IllegalArgumentException("Invalid color specification");
             }

    -        String color = colorString.toLowerCase();
    +        String color = colorString.toLowerCase(Locale.ROOT);

             if (color.startsWith("#")) {
                 color = color.substring(1);
             } else if (color.startsWith("0x")) {
                 color = color.substring(2);