JDK-8230869 : [macos 10.15] The String "X Y Z" was not set to application's icon in the taskbar
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 11,13,14
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86_64
  • Submitted: 2019-09-11
  • Updated: 2021-08-18
  • Resolved: 2019-10-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13 JDK 14
13.0.2Fixed 14 b25Fixed
Related Reports
Relates :  
Relates :  
Description
Testsuite name:JCK manual
Product tested:JDK 11.0.5 b08(64bit)/JCK11b15
OS/architecture:Mac10.15 Beta(19A546d) x64

Reproducible: Always
Reproducible on machine: Evergreen-machine

Actual behavior:
1.TaskbarTest0001: Press "Add taskbar icon" button,Taskbar icon was added,press "Yes" button,please refer to TaskbarTest0001.png;
2.TaskbarTest0002: Press the "Set icon badge string" button,the String "X Y Z" was not set to application's icon in the taskbar.Please refer to TaskbarTest0002.png

Affect Tests:
TaskbarTest0003 & 0004 
Comments
macOS 15 (Catalina) added a requirement that the user give permission for any application to display a badge on its dock icon. Without this permission, any attempt by an application to display a dock icon badge will have no effect. This requirement applies to simple executables as well as bundled applications. Permission is managed using the Notifications system preference panel. I have verified (using JDK 12) that java programs are affected by this new requirement. I believe this explanation for the observed behavior is far more likely than a macOS bug that affects only Java and comes and goes with different OS releases.
23-11-2020

This feature was added by the macOS port project and provided in jdk8 by the eawt on macOS only.
11-04-2020

This feature started to work properly on 10.15.2 Beta (19C46a), so this fix might be reverted at some point.
03-12-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/7dae4286f1cc User: psadhukhan Date: 2019-11-21 09:06:33 +0000
21-11-2019

Fix Request (13u): The bug which causes to fail TCK test. The fix is trivial, the problematic feature will be reported as unsupported.
17-10-2019

URL: https://hg.openjdk.java.net/jdk/client/rev/7dae4286f1cc User: serb Date: 2019-10-17 22:11:08 +0000
17-10-2019

The fix is approved to push: http://mail.openjdk.java.net/pipermail/awt-dev/2019-October/015452.html
17-10-2019

Just an update. I have reran test on MAC 10.15 GA build as well and issue is still reproducible, application's icon was not set to string.
14-10-2019

The suggested fix is to report this feature is unsupported on macOS 10.15 and above.
11-10-2019

The bug still reproduced on macOS 10.15 Beta 9 (19A573a)
24-09-2019

Still reproduced on 10.15 Beta (19A558d)
19-09-2019

What happens if we comment out this line ? NSDictionary *registrationOptions = [NSMutableDictionary dictionaryWithObject:fApplicationName forKey:@"JRSAppNameKey"]; If it isn't working already, maybe we don't need it so much ?
12-09-2019

@Victor Yes, It is. ProductName: Mac OS X ProductVersion: 10.15 BuildVersion: 19A546d
12-09-2019