Integrated: JDK-8325798: Spinner throws uncatchable exception on tab out from garbled text
Marius Hanl
mhanl at openjdk.org
Thu Feb 15 09:58:08 UTC 2024
On Tue, 13 Feb 2024 20:42:08 GMT, Marius Hanl <mhanl at openjdk.org> 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 uncatchable, as it happens on focus lost.
>
> The issue is the same as for the `DatePicker` component described in [JDK-8303478](https://bugs.openjdk.org/browse/JDK-8303478), which was fixed in PR: https://github.com/openjdk/jfx/pull/1274.
>
> I did the exact same fix in this PR. Also added the same test.
This pull request has now been integrated.
Changeset: 49d7d52f
Author: Marius Hanl <mhanl at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/49d7d52fdf1c7341538e5bf4bd1a841dcc85c906
Stats: 42 lines in 2 files changed: 39 ins; 0 del; 3 mod
8325798: Spinner throws uncatchable exception on tab out from garbled text
Reviewed-by: angorya, mstrauss
-------------
PR: https://git.openjdk.org/jfx/pull/1365
More information about the openjfx-dev
mailing list