<AWT Dev> RFR(S) : 8240904 : Screen flashes on test failures when running tests from make
igor.ignatyev at oracle.com
Thu Apr 16 05:22:54 UTC 2020
> 35 lines changed: 26 ins; 0 del; 10 mod
8233827 which added screenshots to so-called failure handler had an unexpected side-effect on linux, where users might observer flashes each time a screenshot is taken, which, to put it mildly, is annoying. the patch replaces gnome-screenshot app w/ calling java.awt API to make a screenshot. the patch also uses the same solution to make screenshots on windows and solaris (which previously didn't save screenshots on failures). we still use native app on mac as using java.awt API requires accessibility permissions, which might be as annoying as flashes on linux.
testing: verified that screenshots are successfully generated on headful systems, and headless systems ignore errors ('java.awt.AWTException: headless environment' from j.a.Robot::<init>).
More information about the awt-dev