RFR: 8316931: [macos14] Test "java/awt/TrayIcon/ShowAfterDisposeTest/ShowAfterDisposeTest.html" throws and exception on Mac OS 14(x64, aarch64) [v8]

Sergey Bylokhov serb at openjdk.org
Thu Feb 1 09:00:05 UTC 2024


On Thu, 1 Feb 2024 08:48:29 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Alisen Chung has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 10 additional commits since the last revision:
>> 
>>  - Merge branch 'master' of https://github.com/openjdk/jdk into 8316931
>>  - remove null check in SunToolkit, remove setting target to null in CTrayIcon
>>  - Merge branch 'master' of https://github.com/openjdk/jdk into 8316931
>>  - added suggested changes, moved test back into folder
>>  - added suggested changes, moved test back into folder
>>  - used jtreg.SkippedException, updated copyright years
>>  - removed extra newlines, moved test out of folder
>>  - spacing
>>  - updated test title, copyright year, removed redundant check
>>  - removed applet usage in test, fixed event posted on wrong app context bug
>
> src/java.desktop/macosx/classes/sun/lwawt/macosx/CTrayIcon.java line 176:
> 
>> 174: 
>> 175:         LWCToolkit.targetDisposedPeer(target, this);
>> 176: //        target = null;
> 
> Why do you commented out this line? just delete it and mark the target as final.

you can also delete the null check(target == null) added by this fix:
https://cr.openjdk.org/~mhalder/8207938/webrev.01/src/java.desktop/macosx/classes/sun/lwawt/macosx/CTrayIcon.java.sdiff.html

BTW that bug looks like had the same root cause.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17329#discussion_r1474050567


More information about the client-libs-dev mailing list