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

All automatic regression tests that create Robot fail on X11

    XMLWordPrintable

Details

    • b60
    • generic, x86, sparc
    • generic, linux, solaris
    • Verified

    Description

      Any application that creates the java.awt.Robot instance fails with the current JDK 7 build with the fowllowing exception:

      java.lang.IllegalArgumentException: button doesn't exist 12
      at java.awt.event.InputEvent.getMaskForButton(InputEvent.java:233)
      at java.awt.Robot.<init>(Robot.java:101)

      Almost half of AWT automatic regression tests use the Robot (throught the test.java.awt.regtesthelpers.Util.createRobot() method), and therefore fail, making it impossible to run the automatic tests.

      For instance, this is what the test/java/awt/Frame/DynamicLayout/DynamicLayout.java ends up with:

      ----------System.err:(17/972)----------
      java.lang.IllegalArgumentException: button doesn't exist 12
      at java.awt.event.InputEvent.getMaskForButton(InputEvent.java:233)
      at java.awt.Robot.<init>(Robot.java:101)
      at test.java.awt.regtesthelpers.Util.createRobot(Util.java:85)
      at DynamicLayout.init(DynamicLayout.java:90)
      at DynamicLayout.main(DynamicLayout.java:165)
      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:623)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
      at java.lang.Thread.run(Thread.java:713)

      Platforms tested:

      Ubuntu 8.10 i586/KDE
      Mandriva Linux 2009/Gnome 2.24

      Attachments

        Issue Links

          Activity

            People

              dav Andrei Dmitriev (Inactive)
              anthony Anthony Petrov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: