JDK-7124506 : [macosx] Dual screen failure java/awt/Multiscreen/LocationRelativeToTest/LocationRelativeToTest.java
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-12-23
  • Updated: 2011-12-28
  • Resolved: 2011-12-23
Related Reports
Duplicate :  
Description
http://java.net/jira/browse/MACOSX_PORT-744 submitted 2011/11/22 by Yuri Nesterenko
Build: b218
java/awt/Multiscreen/LocationRelativeToTest/LocationRelativeToTest.java
Right location for the window center: java.awt.Point<span class=&quot;error&quot;>&#91;x=300,y=250&#93;</span>
Actual location for the window center: java.awt.Point<span class=&quot;error&quot;>&#91;x=-200,y=250&#93;</span>
java.lang.RuntimeException: Test FAILED: setLocationRelativeTo() operates incorrectly
at LocationRelativeToTest.checkLocation(LocationRelativeToTest.java:107)
at LocationRelativeToTest.main(LocationRelativeToTest.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.javatest.regtest.MainWrapper.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:722)