<AWT Dev> RFR: 8203047: [macosx] java/awt/EventDispatchThread/HandleExceptionOnEDT/HandleExceptionOnEDT.java fails

Sergey Bylokhov serb at openjdk.java.net
Wed Apr 28 06:52:59 UTC 2021


On Wed, 28 Apr 2021 06:16:38 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> This test was seen to be failing long time back citing "exception is not handled for modal dialog "
> with stacktrace for some failiures seen to be
> 
> sun.awt.SunToolkit$OperationTimedOut: 10469
>         at sun.awt.X11.XToolkit.syncNativeQueue(XToolkit.java:2447)
>         at sun.awt.SunToolkit.realSync(SunToolkit.java:1574)
>         at sun.awt.SunToolkit.realSync(SunToolkit.java:1506)
>         at test.java.awt.regtesthelpers.Util.waitForIdle(Util.java:184)
>         at HandleExceptionOnEDT.main(HandleExceptionOnEDT.java:75)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:601)
>         at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:96)
>         at java.lang.Thread.run(Thread.java:722)
> This relasync issue was fixed in 8196100 and this test is now passing consistently.
> Even then, I have added a delay to test after the frame/dialog is visible in sync with similar other tests and also dispose off the frame/dialogs at the end in proper finally block.
> Several iterations of test pass in all platforms.
> 
> @jayathirthrao can you please take a look?

I think it is just luck that you did not get an exception, this bug is still there JDK-8072110. You can close this one as a duplicate.

-------------

PR: https://git.openjdk.java.net/jdk/pull/3749


More information about the awt-dev mailing list