<AWT Dev>  RFR JDK-8088132:[Swing, singleThread] ClassCastException in nested event loop when showing multiple message dialogs in SwingNode
prasanta.sadhukhan at oracle.com
Wed Aug 23 08:39:38 UTC 2017
Any feedback on this?
On 8/16/2017 4:03 PM, Prasanta Sadhukhan wrote:
> Hi Sergey,
> AFAIK, FX singleThread feature is supported but experimental feature.
> I have modified webrev to include DefaultKeyboardFocusManager too
> I do not think there is any problem in skipping code which works with
> EDT as for example, in SequencedEvent#dispatch() it says
> Dispatches the nested event after all previous nested events have
> beendispatched or disposed
> Now, since here FX App thread itself is the dispatch thread, we can be
> sure the events are dispatched in sequence and dispose is checked
> below after EDT.
> I have tested with couple of singleThread testcase without any issue.
> On 8/14/2017 10:07 PM, Sergey Bylokhov wrote:
>> Hi, Prasanta, Kevin.
>> I have two notes.
>> - Does this option is really supported? If it is supported we should evaluate all usage of EventDispatchThread because in this mode the dispatch thread is not EDT. For example I am not sure that we can skip the code which expects EventDispatchThread.
>> - We have the similar pattern: "EventQueue.isDispatchThread() -> cast(EventDispatchThread)" in some other places like in DefaultKeyboardFocusManager.
>> -----prasanta.sadhukhan at oracle.com wrote:
>>> Hi All,
>>> Please review this fix
>>> for an fx issue
>>> More info in JBS.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev