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 07:26:48 UTC 2024


On Wed, 14 Aug 2024 21:49:05 GMT, Damon Nguyen <dnguyen at openjdk.org> wrote:

> Is this due to anti-aliasing or something similar? And any idea why it's only Oracle Linux? Change itself looks simple enough, but odd that it's only for this scenario.

@DamonGuy I don't think this has any relationship with anti-aliasing or something similar as there is no font involved. This test verifies whether the frame is maximised or not by checking its four border points(by comparing it's colour with GREEN). But in OEL, the top left and top right borders are curved, so there is a possibility of error if we directly compare those points with GREEN colour, that's why an OFFSET is needed. But an OFFSET of 2 is not sufficient for OEL, and for safety I will change it to 5. I don't see this issue in Ubuntu as the borders as rectangular there, but not curved. I'm attaching the OEL screenshot for your reference.
![MaximizedFrame](https://github.com/user-attachments/assets/3086b093-68fd-42dc-8c7a-1342fada9003)

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

PR Comment: https://git.openjdk.org/jdk/pull/20486#issuecomment-2292974424


More information about the client-libs-dev mailing list