RFR: 8296083: javax/swing/JTree/6263446/bug6263446.java fails intermittently on a VM
lawrence.andrews
duke at openjdk.org
Wed Nov 9 15:05:35 UTC 2022
On Wed, 9 Nov 2022 10:37:24 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> Test intermittently fails in VM citing "Tree is not editing". Seems to be problem with mouse clicks not getting registered properly..
> Similar test test/jdk/javax/swing/JTable/6263446/bug6263446.java is not affected, so made the test similar to it by using same safeguard using Robot.waitForIdle() and modifying clickpoint to tree cell midpoint.
>
> Several iterations of the test pass in the OCI VM and all other physical platforms (link in JBS)
test/jdk/javax/swing/JTree/6263446/bug6263446.java line 184:
> 182:
> 183: frame.getContentPane().add(tree);
> 184: frame.setAlwaysOnTop(true);
Java doc says its better to check whether the platform supports this method before calling it
https://docs.oracle.com/javase/7/docs/api/java/awt/Window.html#setAlwaysOnTop(boolean)
-------------
PR: https://git.openjdk.org/jdk/pull/11057
More information about the client-libs-dev
mailing list