JDK-8245922 : [macos] Taskbar.Feature.ICON_BADGE_NUMBER no longer supported on MacOS
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 11.0.6-oracle,14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2020-05-21
  • Updated: 2024-12-20
  • Resolved: 2020-12-26
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 16 JDK 17
16 b31Fixed 17Fixed
Related Reports
Duplicate :  
Relates :  
Description
ADDITIONAL SYSTEM INFORMATION :
MacOS Catalina 10.15.4, AdoptJDk Java 14.0.1

A DESCRIPTION OF THE PROBLEM :
Taskbar.getTaskbar().isSupported(Taskbar.Feature.ICON_BADGE_NUMBER) returns false with Java 14.0.1 on MacOS Catalina 10.15.4, however on the same machine Taskbar.getTaskbar().isSupported(Taskbar.Feature.ICON_BADGE_NUMBER) returns true when using Java 11.0.7

REGRESSION : Last worked in version 11.0.7

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Taskbar.getTaskbar().isSupported(Taskbar.Feature.ICON_BADGE_NUMBER)

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
 true
ACTUAL -
false

CUSTOMER SUBMITTED WORKAROUND :
I have no workaround on MacOS I use this feature to add text to the icon on the taskbar, but I cannot use that with java 14 currently.

FREQUENCY : always



Comments
Changeset: fb607f16 Author: Sergey Bylokhov <serb@openjdk.org> Date: 2020-12-26 05:52:05 +0000 URL: https://git.openjdk.java.net/jdk16/commit/fb607f16
26-12-2020

It was disabled by the JDK-8230869 due to the bug in the macOS Catalina.
12-08-2020

Reopening this report with additional details and test case as shared by submitter.
11-08-2020

Submitter has shared additional information including a simple test case. "Attached is simple test case, should, return true on MacOS but returns false on problem java versions. The problem is not restricted to 10.15.4 it continues with MacOS 10.15.5 I have now tested with Oracle builds, now it worked okay with11.0.7 , but failed with 14.0.1, and continues to fail with 14.0.2 But interestingly i have now updated to 11.0.8 and it fails on this as well !"
11-08-2020

Closing this as incomplete as we haven't received additional information from submitter to be able to evaluate this issue. If we receive an update in future may reconsider reopening this issue.
02-06-2020

Per description Taskbar.Feature.ICON_BADGE_NUMBER no longer supported on MacOS with AdoptJDK Java 14.0.1, however it worked fine with 11.0.7. Issue is reported with macOS Catalina 10.15.4. We need to know if the issue is restricted to macOS 10.15.4? Also if the issue is reproducible with Oracle JDK versions 11.0.7 and 14.0.1. Written back to the submitter requesting above information and a simple test case to verify this locally.
27-05-2020