CopyAreaOOB.java was failing intermittently on some platforms on CI but recently it started to fail more frequently on macos-aarch64 when the entire test suite runs.
Test failure is not reproducible when the test is run individually (multiple times) on CI. Rewritten the test and added debug logs that will be helpful to figure out the issue. - Added code to capture screenshot (entire screen as well as the frame) in case of failure. - Since it tests multiple regions added a StringBuffer to consolidate the error logs before throwing RuntimeException. ------------- Commit messages: - copyright year - CopyAreaOOB: debug logs Changes: https://git.openjdk.org/jdk/pull/25279/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25279&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8357082 Stats: 114 lines in 2 files changed: 59 ins; 27 del; 28 mod Patch: https://git.openjdk.org/jdk/pull/25279.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/25279/head:pull/25279 PR: https://git.openjdk.org/jdk/pull/25279