Re: RFR: JDK-8325798: Spinner throws uncatchable exception on tab out from garbled text

2024-02-15 Thread Andy Goryachev
On Thu, 15 Feb 2024 09:54:18 GMT, Marius Hanl wrote: >> modules/javafx.controls/src/test/java/test/javafx/scene/control/SpinnerTest.java >> line 1609: >> >>> 1607: spinner.getEditor().setText("2abc"); >>> 1608: >>> 1609: // loosing focus triggers cancelEdit() because the text

Re: RFR: JDK-8325798: Spinner throws uncatchable exception on tab out from garbled text

2024-02-15 Thread Marius Hanl
On Tue, 13 Feb 2024 22:44:50 GMT, Michael Strauß wrote: >> When a `Spinner` is configured with e.g. Integers >> (`IntegerSpinnerValueFactory`) and the user types in a `String`, e.g. 'abc' >> and focuses another `Node`, an exception is thrown (`NumberFormatException`). >> This exception is liter

Re: RFR: JDK-8325798: Spinner throws uncatchable exception on tab out from garbled text

2024-02-13 Thread Michael Strauß
On Tue, 13 Feb 2024 20:42:08 GMT, Marius Hanl wrote: > When a `Spinner` is configured with e.g. Integers > (`IntegerSpinnerValueFactory`) and the user types in a `String`, e.g. 'abc' > and focuses another `Node`, an exception is thrown (`NumberFormatException`). > This exception is literally un

Re: RFR: JDK-8325798: Spinner throws uncatchable exception on tab out from garbled text

2024-02-13 Thread Andy Goryachev
On Tue, 13 Feb 2024 20:42:08 GMT, Marius Hanl wrote: > When a `Spinner` is configured with e.g. Integers > (`IntegerSpinnerValueFactory`) and the user types in a `String`, e.g. 'abc' > and focuses another `Node`, an exception is thrown (`NumberFormatException`). > This exception is literally un

RFR: JDK-8325798: Spinner throws uncatchable exception on tab out from garbled text

2024-02-13 Thread Marius Hanl
When a `Spinner` is configured with e.g. Integers (`IntegerSpinnerValueFactory`) and the user types in a `String`, e.g. 'abc' and focuses another `Node`, an exception is thrown (`NumberFormatException`). This exception is literally uncatchable, as it happens on focus lost. The issue is the same