|
Quick Lists
|
|
Bug ID:
|
6652158
|
|
Votes
|
0
|
|
Synopsis
|
javax/swing/JPopupMenu/6544309/bug6544309.java fails
|
|
Category
|
java:classes_swing
|
|
Reported Against
|
|
|
Release Fixed
|
7(b38),
6u10(b26) (Bug ID:2158202)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
6544309
,
4740942
,
6217905
|
|
Submit Date
|
18-JAN-2008
|
|
Description
|
JDK : Fails: 6u10 b05
Passes: 6u10 b04
Platform Tested : Windows Vista Home, Windows XP Pro
Failing Test [s] : javax/swing/JPopupMenu/6544309/bug6544309.java
Test output:
============
----------System.out:(2/37)----------
Pressing DOWN ARROW
Pressing SPACE
----------System.err:(15/991)----------
java.lang.RuntimeException: If a JDialog is invoker for JPopupMenu, the menu cannot be handled by keyboard.
at bug6544309.checkResult(bug6544309.java:79)
at bug6544309.test(bug6544309.java:59)
at bug6544309.main(bug6544309.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:83)
at java.lang.Thread.run(Thread.java:619)
Posted Date : 2008-01-18 01:43:49.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
It is not a regression. The test case is only affected. A fix will not affect product binaries.
The test fails because the first menu item is not highlighted when a popup menu appears. The problem is caused by the fix for 6217905(4740942). It exactly implemented the described behavior.
A fix is simple. We should add one more "down arrow" pressing in the test case:
test/closed/javax/swing/JPopupMenu/6544309/bug6544309.java
+ 72 System.out.println("Pressing DOWN ARROW");
+ 73 robot.hitKey(KeyEvent.VK_DOWN);
+ 74 realSync();
Posted Date : 2008-05-29 12:47:22.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |