-
Bug
-
Resolution: Fixed
-
P2
-
8, jfx21, jfx22
-
b17
-
windows
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8332165 | jfx22.0.2 | Ambarish Rapte | P2 | Resolved | Fixed | b03 |
JDK-8332326 | jfx21.0.4 | Jose Pereda | P2 | Resolved | Fixed | b01 |
JDK-8332241 | 8u431 | Ambarish Rapte | P2 | Closed | Fixed | b01 |
Exception in thread "JavaFX Application Thread" java.lang.StringIndexOutOfBoundsException: Range [1, -2147483648) out of bounds for length 1
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55)
at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52)
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213)
at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210)
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckFromToIndex(Preconditions.java:112)
at java.base/jdk.internal.util.Preconditions.checkFromToIndex(Preconditions.java:349)
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4861)
at java.base/java.lang.String.substring(String.java:2830)
at javafx.graphics@21/com.sun.glass.ui.win.WinTextRangeProvider.GetText(WinTextRangeProvider.java:367)
at javafx.graphics@21/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics@21/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:185)
at java.base/java.lang.Thread.run(Thread.java:1583)
More details can be found at https://stackoverflow.com/questions/78332309/stringindexoutofboundexception-occurs-when-typing-anything-into-a-javafx-textfie
A reproducer was added by Jose as a comment below.
- backported by
-
JDK-8332165 StringIndexOutOfBoundException when typing anything into TextField
- Resolved
-
JDK-8332326 StringIndexOutOfBoundException when typing anything into TextField
- Resolved
-
JDK-8332241 StringIndexOutOfBoundException when typing anything into TextField
- Closed
- links to
-
Commit openjdk/jfx21u/136dd663
-
Commit openjdk/jfx22u/2bfd9f60
-
Commit openjdk/jfx/d3da033a
-
Review openjdk/jfx21u/57
-
Review openjdk/jfx22u/28
-
Review openjdk/jfx/1442