<Swing Dev> RFR: JDK-8258884: [TEST_BUG] Convert applet-based test open/test/jdk/javax/swing/JMenuItem/8031573/bug8031573.java to a regular java test [v2]

K Suman Rajkumaar github.com+70650887+skodanda at openjdk.java.net
Wed Jan 6 08:26:56 UTC 2021


On Tue, 5 Jan 2021 08:25:00 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> K Suman Rajkumaar has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Update bug8031573.java
>>   
>>   Corrected the jtreg tag from @run main bug8031573 to @run main/manual bug8031573 to make this test as a manual test.
>
> test/jdk/javax/swing/JMenuItem/8031573/bug8031573.java line 68:
> 
>> 66: 
>> 67:         if (!latch.await(5, TimeUnit.MINUTES)) {
>> 68:             frame.dispose();
> 
> The `dispose()` method should be called on EDT.

If I remove the frame.dispose(), the frame doesn't gets disposed even after timeout.

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

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


More information about the swing-dev mailing list