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

[TEST_BUG] Failure javax/swing/JRadioButton/FocusTraversal/FocusTraversal.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • client-libs

        This test consistently (12/12) fails on OS X 10.10 and also fails on Ubuntu 14.04. I didn't try more systems since the test flaw is obvious: it let's Robot to release button immediately after it is pressed. Sometimes it works but very rarely on OS X. The fix is simple:
        --- a/test/javax/swing/JRadioButton/FocusTraversal/FocusTraversal.java
        +++ b/test/javax/swing/JRadioButton/FocusTraversal/FocusTraversal.java
        @@ -60,6 +60,7 @@
             public static void main(String[] args) throws Exception {
         
                 robot = new Robot();
        +robot.setAutoDelay(50);
                 robot.delay(2000);
                 UIManager.LookAndFeelInfo[] lookAndFeelArray
                         = UIManager.getInstalledLookAndFeels();

              aniyogi Avik Niyogi (Inactive)
              yan Yuri Nesterenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: