-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
9
-
x86
-
os_x
FULL PRODUCT VERSION :
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+172)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+172, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Darwin pegasos.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
EXTRA RELEVANT SYSTEM CONFIGURATION :
not relevant
A DESCRIPTION OF THE PROBLEM :
With previous versions of Java it was possible to manipulating of dock icon under OSX was possible with something like
com.apple.eawt.Application.getApplication().setDockIconImage(image);
but unfortunately not any more with Java 9. In JEP 272 this change is mentioned, as well as the idea that Dock is too much Apple-oriented (for me all are Apple oriented) and there is no clear explanation about it.
For all other tasks found in Application class, the java.awt.Desktop class took this functionality, all but the Dock manipulation.
It is a bug which was correct in previous versions of Java, but not any more. Moreover the issue was known but closed as done - which is not the case. There is even discussion on how the dock-related methods should be named, and apart from these specific methods, all other are there intact.
REGRESSION. Last worked in version 8u131
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Not being able to use
Application.getApplication().setDockIconImage(image);
any more and at the same time no equivalent
Desktop.getDesktop().setDockIconImage(image);
exists
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Either way to be able to change the dock icon
ACTUAL -
No way to change the dock icon
ERROR MESSAGES/STACK TRACES THAT OCCUR :
no crash logs
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
com.apple.eawt.Application.getApplication().setDockIconImage(image);
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
No work around
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+172)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+172, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Darwin pegasos.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64
EXTRA RELEVANT SYSTEM CONFIGURATION :
not relevant
A DESCRIPTION OF THE PROBLEM :
With previous versions of Java it was possible to manipulating of dock icon under OSX was possible with something like
com.apple.eawt.Application.getApplication().setDockIconImage(image);
but unfortunately not any more with Java 9. In JEP 272 this change is mentioned, as well as the idea that Dock is too much Apple-oriented (for me all are Apple oriented) and there is no clear explanation about it.
For all other tasks found in Application class, the java.awt.Desktop class took this functionality, all but the Dock manipulation.
It is a bug which was correct in previous versions of Java, but not any more. Moreover the issue was known but closed as done - which is not the case. There is even discussion on how the dock-related methods should be named, and apart from these specific methods, all other are there intact.
REGRESSION. Last worked in version 8u131
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Not being able to use
Application.getApplication().setDockIconImage(image);
any more and at the same time no equivalent
Desktop.getDesktop().setDockIconImage(image);
exists
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Either way to be able to change the dock icon
ACTUAL -
No way to change the dock icon
ERROR MESSAGES/STACK TRACES THAT OCCUR :
no crash logs
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
com.apple.eawt.Application.getApplication().setDockIconImage(image);
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
No work around
- relates to
-
JDK-8048731 JEP 272: Platform-Specific Desktop Features
-
- Closed
-