Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8148571

Curious failure of java/awt/Frame/SetMaximizedBounds/SetMaximizedBounds.java

XMLWordPrintable

    • 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.

            rchamyal Rajeev Chamyal (Inactive)
            yan Yuri Nesterenko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: