On Fri, 30 May 2025 00:40:11 GMT, Harshitha Onkar <hon...@openjdk.org> wrote:

>> 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.
>
> Harshitha Onkar has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   added testRegion back to paint()

test/jdk/java/awt/Graphics2D/CopyAreaOOB.java line 84:

> 82:             }
> 83:         } finally {
> 84:             EventQueue.invokeAndWait(frame::dispose);

you do not need to call it on EDT

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/25279#discussion_r2121915015

Reply via email to