<Swing Dev> RFR: 8261689: javax/swing/JComponent/7154030/bug7154030.java still fails with "Exception: Failed to hide opaque button" [v3]

Alexander Zuev kizune at openjdk.java.net
Thu Mar 4 17:24:43 UTC 2021


On Thu, 4 Mar 2021 02:56:05 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Moved checking block up to keep consistency of operations.
>
> test/jdk/javax/swing/JComponent/7154030/bug7154030.java line 115:
> 
>> 113:             Graphics g = fullScreen.getGraphics();
>> 114:             g.setColor(Color.RED);
>> 115:             g.drawRect(locx - 1, locy - 1, frw + 1, frh + 1);
> 
> I believe we need to call g.dispose to dispose this object which we normallydo after getGraphics() call.

It is not necessary in such a short test, JVM will exit after test ends which will clear all the resources captured by this Graphics instance.

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

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


More information about the swing-dev mailing list