<Swing Dev> [12] RFR JDK-8196097: javax/swing/JPopupMenu/6675802/bug6675802.java fails

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Fri Nov 9 20:27:22 UTC 2018


Hi, Prasanta.
It looks like a product issue in 2D in the GDI native code, isn't it?
I think that the reason might be a race between disposing the component in main(), and draw operation on EDT.
Based on the stack trace it looks like Java2D tries to draw something to the native component which does not exists.

On 09/11/2018 01:35, Prasanta Sadhukhan wrote:
> Hi All,
> 
> Please review a test fix for jdk12
> Bug: https://bugs.openjdk.java.net/browse/JDK-8196097
> webrev: http://cr.openjdk.java.net/~psadhukhan/8196097/webrev/
> 
> The test sometimes fails due to paint operation not being executed properly when run in group as the test always passes if run in standalone mode.
> This is probably due to fact the swing component is not called from EDT.
> Proposed fix is to make sure JPopupMenu is called from EDT.
> 
> Regards
> Prasanta


-- 
Best regards, Sergey.


More information about the swing-dev mailing list