RFR: 8022403: sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java fails [v4]

Sergey Bylokhov serb at openjdk.org
Thu Nov 17 18:50:35 UTC 2022


On Thu, 17 Nov 2022 04:04:31 GMT, Jayathirth D V <jdv at openjdk.org> wrote:

>> test/jdk/sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java line 89:
>> 
>>> 87: 
>>> 88:         final Frame frame = new Frame("OnScreenRenderingResizeTest") {
>>> 89:             public void paint(Graphics g) {}
>> 
>> Looks like these two empty methods are removed by the fix, why?
>
> We creating frame on EDT and running animation in main().
> I didnt see any change by removing empty paint() method of frame(), thats why it is removed as cleanup.

That empty methods were there to eliminate the clearing the frame by default implementation of it in Window/Container/Component.

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

PR: https://git.openjdk.org/jdk/pull/11158



More information about the client-libs-dev mailing list