<AWT Dev>  RFR JDK-8204161: Testcase auto failed with the "Applet thread threw exception: java.lang.UnsupportedOperationException" exception.
pankaj.b.bansal at oracle.com
Thu Feb 27 07:22:07 UTC 2020
Please review the following test only fix for jdk15.
The testcases fail with exception Applet thread threw exception: java.lang.UnsupportedOperationException" exception on Ubuntu 18.04.
The test cases are failing as Ubuntu 18.04 does not support SystemTray and the tests are lacking proper checks for the same. So, the tests tries to use SystemTray and throw this exception.
AddPopupAfterShowTest: This test already has a check for SystemTray support and returns from Applet init function, but the Applet start function does not have this check and tries to use SystemTray. The test should just exit after first check if the SystemTray is not supported. Also, I have removed the Applet use in the test.
MiddleButtonEventTest: This test is missing the check for SystemTray altogether. Added the check for same and removed the Applet use from the test. The test is moved from the closed repo to open repo, so looks like a new test in webrev.
The tests pass in Windows, Linux and Mac.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev