-
Bug
-
Resolution: Fixed
-
P4
-
11, 17, 21, 23, 24
-
b12
-
generic
-
linux_oracle
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8342430 | 23.0.2 | Alexey Ivanov | P4 | Resolved | Fixed | b03 |
JDK-8346408 | 21.0.7 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8340086 | 21.0.6-oracle | Trupti Patil | P4 | Resolved | Fixed | b01 |
JDK-8346550 | 17.0.15 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8340175 | 17.0.14-oracle | Trupti Patil | P4 | Resolved | Fixed | b01 |
JDK-8340890 | 11.0.26-oracle | Trupti Patil | P4 | Resolved | Fixed | b01 |
JDK-8341885 | 8u441 | Trupti Patil | P4 | Resolved | Fixed | b02 |
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 5, it works fine in all the platforms.
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.
- backported by
-
JDK-8340086 java/awt/Frame/MaximizeUndecoratedTest.java fails in OEL due to a slight color difference
-
- Resolved
-
-
JDK-8340175 java/awt/Frame/MaximizeUndecoratedTest.java fails in OEL due to a slight color difference
-
- Resolved
-
-
JDK-8340890 java/awt/Frame/MaximizeUndecoratedTest.java fails in OEL due to a slight color difference
-
- Resolved
-
-
JDK-8341885 java/awt/Frame/MaximizeUndecoratedTest.java fails in OEL due to a slight color difference
-
- Resolved
-
-
JDK-8342430 java/awt/Frame/MaximizeUndecoratedTest.java fails in OEL due to a slight color difference
-
- Resolved
-
-
JDK-8346408 java/awt/Frame/MaximizeUndecoratedTest.java fails in OEL due to a slight color difference
-
- Resolved
-
-
JDK-8346550 java/awt/Frame/MaximizeUndecoratedTest.java fails in OEL due to a slight color difference
-
- Resolved
-
- relates to
-
JDK-8328753 Open source few Undecorated Frame tests
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk17u-dev/cdf62864
-
Commit(master) openjdk/jdk21u-dev/539990cd
-
Commit(master) openjdk/jdk23u/d470f690
-
Commit(master) openjdk/jdk/15b20cb1
-
Review(master) openjdk/jdk17u-dev/3133
-
Review(master) openjdk/jdk21u-dev/1228
-
Review(master) openjdk/jdk23u/167
-
Review(master) openjdk/jdk/20486