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

Print this page

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

    *** 25,34 ****
    --- 25,35 ----

      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,396 ****
              }
              if (colorString.isEmpty()) {
                  throw new IllegalArgumentException("Invalid color specification");
              }

    !         String color = colorString.toLowerCase();

              if (color.startsWith("#")) {
                  color = color.substring(1);
              } else if (color.startsWith("0x")) {
                  color = color.substring(2);
    --- 387,397 ----
              }
              if (colorString.isEmpty()) {
                  throw new IllegalArgumentException("Invalid color specification");
              }

    !         String color = colorString.toLowerCase(Locale.ROOT);

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