On Fri, 13 May 2022 22:09:08 GMT, Phil Race <p...@openjdk.org> wrote:
>> test/jdk/java/awt/TrayIcon/TrayIconScalingTest.java line 73: >> >>> 71: System.out.println("SystemTray is not supported"); >>> 72: return; >>> 73: } >> >> This should be the first statement in main. If icons aren't supported, >> there's no need to create the instruction frame. The test will still wait >> for user's response but no tray icon is added. > >> This should be the first statement in main. If icons aren't supported, >> there's no need to create the instruction frame. The test will still wait >> for user's response but no tray icon is added. > > It won't wait if you haven't created it .. it will just exit without showing > anything and be counted as pass, that's probably OK. Added the **!SystemTray.isSupported()** check as first line in main(). In case the system tray is not supported, the test is counted as pass and does not proceed to display instruction frame. ------------- PR: https://git.openjdk.java.net/jdk/pull/8441