RFR: 7001973: java/awt/Graphics2D/CopyAreaOOB.java fails

Sergey Bylokhov serb at openjdk.java.net
Wed Sep 29 00:45:41 UTC 2021


On Tue, 28 Sep 2021 07:15:44 GMT, Masanori Yano <myano at openjdk.org> wrote:

> Yes. With `-Dsun.awt.noerasebackground=true`, original CopyAreaOOB.java is Passed. But it is just a workaround.

Yes, it is just a workaround that most probably will not work on other platforms. But EDT freeze for some time after copyarea will work.

> paint() is called twice with default settings on Windows, so my suggested fix is more realistic and reasonable than original code with `-Dsun.awt.noerasebackground=true`.

Do you know why we post it twice? It does not seem right, since we repaint all content in the apps like Netbeans/Idea and it is quite a heavyweight operation.

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

PR: https://git.openjdk.java.net/jdk/pull/5491



More information about the client-libs-dev mailing list