RFR: 8349004: DatePicker: NPE in show() when initialized in a background thread
Kevin Rushforth
kcr at openjdk.org
Thu Feb 13 23:30:15 UTC 2025
On Wed, 12 Feb 2025 19:45:32 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> ## Root Cause
>
> Focus is being requested in show(), even a background thread.
>
> ## Solution
>
> Do not request focus if in a background thread.
I took another look today, and I am convinced that we need to change the spec and implementation of all `show` and `hide` methods to enforce the threading restriction that they must only be called on the JavaFX Application thread. I filed the following bug to do this:
[JDK-8350048](https://bugs.openjdk.org/browse/JDK-8350048): Enforce threading restrictions for show and hide methods in Window, Control, and Skin
Therefore, this PR should be withdrawn and the bug should be closed as a Duplicate of JDK-8350048.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1708#issuecomment-2657918889
More information about the openjfx-dev
mailing list