Skip to content
Permalink
Browse files
8264125: Specification of Taskbar::getIconImage doesn't mention that …
…the returned image might not be equal to the Taskbar::setIconImage one. (eg on Mac OS)

Reviewed-by: kizune, prr
  • Loading branch information
Alexander Zvegintsev committed Jun 26, 2021
1 parent 3b83bc1 commit 51a1299b68fb3a2e58de20209745c89f1d5f9ed3
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/java.desktop/share/classes/java/awt/Taskbar.java
@@ -323,7 +323,7 @@ public PopupMenu getMenu() {
}

/**
* Changes this application's icon to the provided image.
* Requests the system to change this application's icon to the provided {@code image}.
*
* @param image to change
* @throws SecurityException if a security manager exists and it denies the
@@ -340,6 +340,10 @@ public void setIconImage(final Image image) {
/**
* Obtains an image of this application's icon.
*
* @apiNote The returned icon image may not be equal
* to an image set by {@link java.awt.Taskbar#setIconImage},
* but should be visually similar.
*
* @return an image of this application's icon
* @throws SecurityException if a security manager exists and it denies the
* {@code RuntimePermission("canProcessApplicationEvents")} permission.

1 comment on commit 51a1299

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 51a1299 Jun 26, 2021

Please sign in to comment.