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

Size-restricted window reports incorrect dimensions on Linux

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx11, 8
    • javafx
    • None
    • Ubuntu 22.04

      The InitialWindowSizeTest, which was added to test the fix for JDK-8299348, fails on Linux with the following assertion failure:

      InitialWindowSizeTest > testInitialWindowSize() FAILED
          org.opentest4j.AssertionFailedError: expected: <300.0> but was: <20.0>
              at app//org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
              at app//org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
              at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:86)
              at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:81)
              at app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1010)
              at app//test.com.sun.glass.ui.InitialWindowSizeTest.testInitialWindowSize(InitialWindowSizeTest.java:78)

      The Window is in fact the correct size, but the values of Stage.getWidth() and Stage.getHeight() do not reflect the actual size.

      This is a preexisting bug, and is only related to JDK-8299348 in that the test for that (Windows-specific) fix has exposed the bug on Linux.

            tsayao Thiago Sayao
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: