Duplicate :
|
|
Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
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
|