Hi Davide,

I ran your test again on Windows 10 and 11, and the results are different. In both cases, I used a recent build of Java 22, which is the mainline.

On Windows 10, the notification goes to the Action Center, it stays there until I explicitly dismiss it.

On Windows 11, the notification doesn't go to the Notification Center, it's completely gone as soon as the toast disappears.

This coincides with what you stated in the bug description.


I added this analysis to the bug. As I explained there, Java uses Windows Shell API to display a notification. This API is available since Windows 95, and it  provides no control whether the notification disappears or goes to the Action Center; after all, the Action or Notification Center didn't exist until Windows 8.

So, the status Cannot Reproduce seems wrong. At the same time, there's nothing we can do about it.


The “Display the Notification” [1] section explains how to display a notification, this is what Java does.

Does the Windows SDK sample, NotificationIcon Sample [2], behave the same way?

--
Regards,
Alexey

[1] https://learn.microsoft.com/en-us/windows/win32/shell/notification-area#display-the-notification [2] https://learn.microsoft.com/en-us/windows/win32/shell/samples-notificationicon

On 30/08/2023 12:56, Davide Perini wrote:
Hi all,
I noticed that since the latest Windows 11 updates,
AWT notifications no longer appears in the Windows notification center and automatically disappear.

This means that if you are able to read the notification because you are in front of the monitor, it's ok, if you are not in front of the monitor or you are reading something else, you'll loose the notification content.

There is a bug report here with a simple code to reproduce the problem:
https://bugs.openjdk.org/browse/JDK-8310352

but they marked as not reproducible even if I can reproduce it.

Any idea how to solve it or how to report back again for analysis?

Thanks
Davide

Reply via email to