RFR: 7001973: java/awt/Graphics2D/CopyAreaOOB.java fails
Masanori Yano
myano at openjdk.java.net
Fri Sep 24 11:19:53 UTC 2021
On Fri, 17 Sep 2021 08:15:54 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> my question was why the first CopyArea is ignored?
This is a RepaintArea's behavior. clearRect() is called before paint() because shouldClearRectBeforePaint is true for Canvas. Then, if 2nd paint() is called and paint() does nothing, blank window will be drawn.
https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/sun/awt/RepaintArea.java#L235
-------------
PR: https://git.openjdk.java.net/jdk/pull/5491
More information about the client-libs-dev
mailing list