-
Bug
-
Resolution: Fixed
-
P2
-
9
-
Windows 7 x64
-
team
RULE "java/awt/Frame/SetMaximizedBounds/SetMaximizedBounds.java" Exception java.lang.RuntimeException: The bounds of the Frame do not equal to what is specified when the frame is in Frame.MAXIMIZED_BOTH state
The test fails with this exception on Windows 7 x64 on the first step for decorated Frame. The code goes like this:
Rectangle bounds = frame.getBounds();
if (!bounds.equals(maximizedBounds)) {
throw new RuntimeException("The bounds of the Frame do not equal to what"
+ " is specified when the frame is in Frame.MAXIMIZED_BOTH state");
}
Now, they are not equals(). If, however, you print both bounds and maximizedBounds immediately before 'if' statement, they are both java.awt.Rectangle and have exactly the same coordinates and width/height.
The test does pass with b66 but fails with b98 and the current PIT for b105.
The test fails with this exception on Windows 7 x64 on the first step for decorated Frame. The code goes like this:
Rectangle bounds = frame.getBounds();
if (!bounds.equals(maximizedBounds)) {
throw new RuntimeException("The bounds of the Frame do not equal to what"
+ " is specified when the frame is in Frame.MAXIMIZED_BOTH state");
}
Now, they are not equals(). If, however, you print both bounds and maximizedBounds immediately before 'if' statement, they are both java.awt.Rectangle and have exactly the same coordinates and width/height.
The test does pass with b66 but fails with b98 and the current PIT for b105.
- duplicates
-
JDK-8158918 setExtendedState(1) for maximized Frame results in state==7
-
- Resolved
-
- relates to
-
JDK-8037575 JFrame on Windows doesn't animate when setting ICONIFIED state
-
- Resolved
-