<Swing Dev> RFR: 8028281: [TEST_BUG] [macosx] javax/swing/JTabbedPane/7024235/Test7024235.java fails

Sergey Bylokhov serb at openjdk.java.net
Sun Oct 25 21:24:38 UTC 2020


On Sun, 25 Oct 2020 09:57:32 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> The test fails because of a missed null check for the next method:
>> https://docs.oracle.com/en/java/javase/15/docs/api/java.desktop/javax/swing/JTabbedPane.html#getBoundsAt(int)
>
> test/jdk/javax/swing/JTabbedPane/7024235/Test7024235.java line 79:
> 
>> 77:             this.pane.addTab("3", new JCheckBox());
>> 78: 
>> 79:             JFrame frame = new JFrame();
> 
> I guess the frame needs to be disposed in finally block.

It is already disposed of at line #90 but only for automated mode, if the test run manually the frame will not be disposed of + an exception is also will not throw.

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

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


More information about the swing-dev mailing list