RFR: 8325097: [macos14] Test "java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.html" failed on macOS 14.3 aarch64 when double-click with the right button on the tray icon with message: "java.lang.RuntimeException: Event posted on wrong app contex" [v4]

Damon Nguyen dnguyen at openjdk.org
Fri Feb 16 22:10:02 UTC 2024


On Fri, 16 Feb 2024 21:30:21 GMT, Alisen Chung <achung at openjdk.org> wrote:

>> Root cause of the test failure was fixed with https://bugs.openjdk.org/browse/JDK-8316931, updating this test since the other fix also included a test update.
>
> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision:
> 
>   remove unused var

Test LGTM now but I left some comments on minor issues.

test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 45:

> 43:  * @run main/manual DisposeInActionEventTest
> 44:  */
> 45: public class DisposeInActionEventTest {

Add newline between these

test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 51:

> 49:         String instructions;
> 50:         if (!SystemTray.isSupported()) {
> 51:             throw new jtreg.SkippedException("The test cannot be run because SystemTray is not supported.");

Suggestion:

            throw new jtreg.SkippedException("The test cannot be run because " + 
            "SystemTray is not supported.");

test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java line 64:

> 62:                            "  (also called Taskbar Status Area on MS Windows, Notification\n" +
> 63:                            "  Area on Gnome or System Tray on KDE) is visible.\n" +
> 64:                            "Double-click with " + clickInstruction + " button on the tray icon to trigger the\n" +

The instructions say to double click, but a single click right click is sufficient in macOS.

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

Marked as reviewed by dnguyen (Committer).

PR Review: https://git.openjdk.org/jdk/pull/17838#pullrequestreview-1886128600
PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1493022325
PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1493025074
PR Review Comment: https://git.openjdk.org/jdk/pull/17838#discussion_r1493025951


More information about the client-libs-dev mailing list