<AWT Dev> RFR: 8250804: Can't set the application icon image for Unity WM on Linux.

Alexander Zvegintsev azvegint at openjdk.java.net
Fri Mar 5 11:48:52 UTC 2021


On Fri, 5 Mar 2021 01:18:26 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> test/jdk/ProblemList.txt line 855:
>> 
>>> 853: java/awt/event/MouseEvent/AltGraphModifierTest/AltGraphModifierTest.java 8162380 generic-all
>>> 854: java/awt/Window/TranslucentJAppletTest/TranslucentJAppletTest.java 8163086 macosx-all
>>> 855: java/awt/image/multiresolution/MultiResolutionIcon/IconTest.java 8250804 macosx-all,linux-all
>> 
>> Does this test work fine on the macOS? Looks like it was reported here:
>> 
>> https://bugs.openjdk.java.net/browse/JDK-8250804?focusedCommentId=14379402&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14379402
>
> O, I see that you made it Linux only.

Yes, it does not work on macOS.
For changing dock icon on macOS you should use `java.awt.Taskbar#setIconImage` or assign it with application bundle.

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

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


More information about the awt-dev mailing list