On Thu, 17 Nov 2022 04:04:31 GMT, Jayathirth D V <[email protected]> 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

Reply via email to