-
Bug
-
Resolution: Fixed
-
P2
-
7
-
b60
-
generic, x86, sparc
-
generic, linux, solaris
-
Verified
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
- duplicates
-
JDK-6834346 java.awt.Robot could not be instantiated with DISPLAY set to Linux machine
- Closed
-
JDK-6808591 "java.lang.IllegalArgumentException: button doesn't exist 12" from Robot
- Closed
- relates to
-
JDK-6750288 Regression after 6315717. ArrayIndexOutOfBoundsException.
- Closed
-
JDK-6833404 java.awt.event.MouseEvent constructor should mention throwing HE in headless mode
- Closed
-
JDK-6860088 many tests failed related to AWT-EventQueue or X11 since jdk7 b60
- Closed
-
JDK-6844270 Mouse hot-plugging should work consistent for SunToolkit and MouseInfo classes
- Closed
-
JDK-6315717 Support For Mouse With Multiple Scroll Wheels and 4 or More Buttons
- Closed
-
JDK-8157147 Ubuntu Linux: invalid KeyEvent's extended modifiers info
- Open
-
JDK-6844750 Solaris build failed after 6799099
- Closed