JDK-4783875 : mnemonics bug in 1.4.1
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.1
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2002-11-23
  • Updated: 2002-12-04
  • Resolved: 2002-12-04
Related Reports
Duplicate :  
Description
Attached are a couple of files demostrating the menu mnemonics bug I've 
found in 1.4.1.  The main class is "Application1".  Run the program, you should 
see a Menu bar with "File" and "Help" menus.  Press ALT-F to activate the "File" 
menu.  So far so good.  Under the "File" menu are the "New" submenu, the "Save" 
menu item, and the "Exit" menu item.  Under the "New" submenu is a "Story" menu 
item.  Both the "Save" and "Story" menu items have "S" as their mnemonic, but 
given that the 2 menu items are not on the same menu level, there should be no 
mixup regarding mnemonics (at least there were none in 1.4.0).  Now press "S" to 
select the "Save" menu item; I would expect to see "Save Action" printed to 
standard out.  However, "New Story Action" is printed instead, which indicates 
that the "Story" menu item under the "New" submenu is getting invoked.

 I have compiled & executed program under following environment on 
 Windows platform.

 My observations  are as follow:

 On 1.3.1_06    hot key "s" functions as Save Action
 On 1.4.0_02    hot key "s" functions as Save Action

 On 1.4.1         hot key "s"  functions as  New story----------> 
 appears to be bug

 On 1.4.2-beta-b08  pressing hot key "s" functions as Save Action

It appears that something broken in 1.4.1 & needs to be fixed.

Comments
EVALUATION This is not an issue for mantis. Commit this to 1.4.1_03 ###@###.### 2002-11-25 ---------------------------------------------- see bug No. 4750590 ###@###.### 2002-12-04
25-11-2002