RFR: 8349004: DatePicker: NPE in show() when initialized in a background thread
Kevin Rushforth
kcr at openjdk.org
Wed Feb 12 23:46:16 UTC 2025
On Wed, 12 Feb 2025 23:39:07 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> > 1. Change the spec and implementation to throw an exception if `ComboBoxBaseSkin::show` is called on a thread other than the FX Application Thread
>
> I like this option!
>
> Does it mean ColorPicker.show() should also throw?
Yes. If we do this -- and I think we should strongly consider it -- all of the `show` methods in Control, PopupWindow, and Skin should throw on a background thread.
-------------
PR Comment: https://git.openjdk.org/jfx/pull/1708#issuecomment-2655091487
More information about the openjfx-dev
mailing list