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

Unity: getLocationOnScreen lies if setLocationByPlatform

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
      None
    • Environment:

      Ubuntu 16.04 Unity (incidentally, Xinerama, dual screen)

    • Subcomponent:
    • Introduced In Build:
      b130
    • Introduced In Version:
      9
    • OS:
      linux_ubuntu

      Description

      Run on Ubuntu 16.04 Unity java/awt/Window/SetWindowLocationByPlatformTest/SetWindowLocationByPlatformTest.java (perhaps for clarity adding delays to see everything and be sure): it most probably would properly tile Frames side by side. Thus, the location of the second Frame would be something like (500,24). It is configurable but still, Frames will be placed good enough.

      Now, since JDK9 b 130 the test will fail reporting that both Frames have the same location. It is definitely not the inset dance since you may add whatever delays and actions before getting location on screen: it still will be wrong.

      With b129 it works well.


      RULE "java/awt/Window/SetWindowLocationByPlatformTest/SetWindowLocationByPlatformTest.java" Exception java.lang.RuntimeException: Test FAILED: both frames have the same location java.awt.Point[x=0,y=24]

      On 14.04, Xfce4 system actually places the Frames on top of each other in the middle of the screen but it is just FYI.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ssadetsky Semyon Sadetsky (Inactive)
              Reporter:
              yan Yuri Nesterenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: