## modules/graphics/src/main/java/javafx/scene/Cursor.java

Print this page

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

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

     package javafx.scene;

     import java.net.MalformedURLException;
     import java.net.URL;
    +import java.util.Locale;
     import javafx.scene.image.Image;
     import com.sun.javafx.cursor.CursorFrame;
     import com.sun.javafx.cursor.CursorType;
     import com.sun.javafx.cursor.StandardCursorFrame;

    @@ -217,11 +218,11 @@

             if (isUrl(identifier)) {
                 return new ImageCursor(new Image(identifier));
             }

    -        String uName = identifier.toUpperCase();
    +        String uName = identifier.toUpperCase(Locale.ROOT);
             if (uName.equals(DEFAULT.name)) {
                 return DEFAULT;
             } else if(uName.equals(CROSSHAIR.name)) {
                 return CROSSHAIR;
             } else if (uName.equals(TEXT.name)) {