RFR: 8337886: java/awt/Frame/MaximizeUndecoratedTest.java fails in OEL due to a slight color difference

Manukumar V S mvs at openjdk.org
Fri Aug 16 06:00:52 UTC 2024


On Fri, 16 Aug 2024 01:39:38 GMT, Alisen Chung <achung at openjdk.org> wrote:

>> java/awt/Frame/MaximizeUndecoratedTest.java fails in OEL due to a slight color difference in the background color. This is currently reproduced only for Oracle Linux. 
>> 
>> The Color object I'm getting for each of these Point objects:
>> new Point(maxBounds.x + OFFSET, maxBounds.y + OFFSET) --> java.awt.Color[r=0,g=255,b=0]
>>  new Point(maxBounds.width - OFFSET, maxBounds.y + OFFSET) --> java.awt.Color[r=0,g=207,b=0]
>>  new Point(maxBounds.width - OFFSET, maxBounds.height - OFFSET) --> java.awt.Color[r=0,g=255,b=0]
>>  new Point(maxBounds.x + OFFSET, maxBounds.height - OFFSET) --> java.awt.Color[r=0,g=255,b=0]
>>  
>> So, the issue occurs for the second Point object --> new Point(maxBounds.width - OFFSET, maxBounds.y + OFFSET) - java.awt.Color[r=0,g=207,b=0]
>> 
>> 
>> Fix:
>> When the offset is increased from 2 to 3, it works fine in all the platforms.
>> 
>> Testing:
>> Tested using mach5 in all the available platforms and it works fine everywhere(results attached in bug).
>> Tested manually in OEL 8 and it works fine there also.
>
> test/jdk/java/awt/Frame/MaximizeUndecoratedTest.java line 1:
> 
>> 1: /*
> 
> It appears in the attached tests that one of the platforms (linux aarch64) was not run. Could you double check the mach5 test run?

Yea thats true, there was no linux-aarch64 headful machines available in mach5, but I have run it manually and confirmed that its working fine in linux-aarch64 also.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20486#discussion_r1719370658


More information about the client-libs-dev mailing list