RFR: 8325097: [macos14] DisposeInActionEventTest.html failed with message: "Event posted on wrong app contex" [v8]

Alisen Chung achung at openjdk.org
Tue Feb 27 21:08:43 UTC 2024


On Tue, 27 Feb 2024 11:05:20 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   remove system property set
>
> test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 77:
> 
>> 75:                 .testUI(DisposeInActionEventTest::showFrameAndIcon)
>> 76:                 .build()
>> 77:                 .awaitAndCheck();
> 
> I propose removing the icon from the system tray in a `finally` block. Otherwise, the test doesn't exit if you run it without jtreg.

i'm not sure i understand this, the test is trying to remove right after the click action is delivered and not before the test is closing, so wouldn't putting the removal of the icon in a finally block defeat the purpose of the test?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1504988965


More information about the client-libs-dev mailing list