<Swing Dev> RFR: 7190978: javax/swing/JComponent/7154030/bug7154030.java fails on mac

Sergey Bylokhov serb at openjdk.java.net
Sat Oct 31 03:22:58 UTC 2020


On Fri, 30 Oct 2020 11:42:53 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> Please review a test fix for an issue seen where robot image capture is wrong if screen scale factor is more, which could result in button or frame to move out of captured dimension of 300,300.
> Fixed by setting uiScale=1 in the test which can still reproduce JDK-7154030.
> Mach5 job has been run for several iterations in all platforms. Link in JBS.

test/jdk/javax/swing/JComponent/7154030/bug7154030.java line 55:

> 53:  * @build Util
> 54:  * @build ExtendedRobot
> 55:  * @run main/othervm -Dsun.java2d.uiScale=1 bug7154030

The "sun.java2d.uiScale" does not affect the sizes of the frame on macOS, Is it possible that it was reported on HiDPI screen macOS?

-------------

PR: https://git.openjdk.java.net/jdk/pull/955


More information about the swing-dev mailing list