JDK-8148571 : Curious failure of java/awt/Frame/SetMaximizedBounds/SetMaximizedBounds.java
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-01-29
  • Updated: 2016-08-16
  • Resolved: 2016-07-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 teamFixed
Related Reports
Duplicate :  
Relates :  
Description
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.
Comments
It has been fixed as part of JDK-8158918 http://hg.openjdk.java.net/jdk9/client/jdk/rev/003f528f6986
22-07-2016

Rajeev, what is a changeset associated with this fix/ Did you want to close it as duplicate?
22-07-2016

regression of JDK-8037575
01-02-2016