JDK-8158621 : The ALT key can not work with any key
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: os_x
  • CPU: x86
  • Submitted: 2016-05-27
  • Updated: 2019-02-01
  • Resolved: 2019-02-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Testsuite name: JCK manual 
Test name:api/javax_swing/interactive/JMenuItemTests.html#JMenuItem
Product tested: JDK 9 b120 64bit
OS/architecture:OS/architecture:Mac10.11-x64
 
Reproducible: Always
Reproducible on machine: Evergreen-machine
[If Sometimes] Also reproducible on machine:

Is it a Regression: Yes
[If Regression] Regression introduced in release/build:9 b120
(JDK 9 b119 on the same OS: Pass)

Test result on the last GAed release for this train:
[if Fail] Test result on FCS:

Is it a platform specific issue: Yes(same build with Oel6.4 UEK x64:Pass
                                                  same build with Solaris11.3-x64:Pass
                                                  same build with Win10 x64:Pass) 
                              

Is it a new (previously unsupported) OS/browser/mode testing: No
[If new configuration testing] Issue specific to execution mode or OS/browser version:

Steps to reproduce:
1. Install test bundle jdk-9-ea+120_osx-x64_bin.dmg  to /Library/Java/JavaVirtualMachines/jdk-9.jdk
2. Download the JCK-runtime-9.jar from /java/re/jck/9/promoted/ea/b36/bundles/JCK-runtime-9.jar to /var/root/jck and use /Library/Java/JavaVirtualMachines/jdk-9.jdk -jar JCK-runtime-9.jar to unzip it
3./Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/java -showversion -cp /var/root/jck/JCK-runtime-9/classes:/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/lib/tools.jar -Djava.security.policy=/private/var/root/jck/JCK-runtime-9/lib/jck.policy javasoft.sqe.tests.api.javax.swing.interactive.JMenuItem.JMenuItemTests -TestCaseID ALL -TestDirURL file:/private/var/root/jck/JCK-runtime-9/tests/api/javax_swing/interactive/JMenuItemTests.html#JMenuItem



Descriptions:
This test verifies the mnemonic behavior of JMenuItem(String, int) constructor.Please verify that the panel below has a menubar with one menu and 4 items in it.Besides using the mouse to maneuver and select the menu items, they can also be selected by holding down the look and feel's mouseless modifier (for example, the ALT key) and pressing 'm' to bring up the menu, followed by pressing '1/2/3/4' to select the menu item.The menu item selection status is reflected into the corresponding radio button.

Actual behavior:
When holding down the look and feel's mouseless modifier(for example, the ALT key or CTRL+ALT or Command+ALT) and pressing 'm',the menu can't be bring up.

The following case has the same issue:
api/javax_swing/interactive/JButtonTests.html#JButton (JButtonTest0010.)
api/javax_swing/interactive/JToggleButtonTests.html#JToggleButton (JToggleButtonTest0009)
api/javax_swing/interactive/JTextAreaTests.html#JTextArea (JTextAreaTest0028)
Comments
Tony/Michael, Since this bug is in team repo, please remove "Fix failed" till it is getting pushed into main repo.
26-07-2016

mac10.11/9b126, still have thus issue
08-07-2016

The same issue reproduce with jdk9b122(64bit) on mac10.10. RULE "api/javax_swing/interactive/JButtonTests_JButton" any any RULE "api/javax_swing/interactive/JToggleButtonTests_JToggleButton" any any RULE "api/javax_swing/interactive/JMenuItemTests_JMenuItem" any any RULE "api/javax_swing/interactive/JTextAreaTests_JTextArea" any any
14-06-2016

regression caused by a fix on mnemonics.
07-06-2016

Hi Govindan, We tried again, 1)JDK9b120 on iMac10.11: command+m/Alt+m/Alt+Ctrl+m are not working 2)JDK9b119 on iMac10.11: command+m/Alt+m are not working, but Alt+Ctrl+m is working, so it is regression, we are using the Alt+Ctrl+m to test. 3)We are using physical machine, we never use vnc.
03-06-2016

RULE "api/javax_swing/interactive/JButtonTests_JButton" TestCase [JButtonTest0010] setMnemonic(int i) method does not work as expected. The ALT key can not work with any key.refer to INTJDK-7623762. RULE "api/javax_swing/interactive/JToggleButtonTests_JToggleButton" TestCase [JToggleButtonTest0009] setMnemonic() method does not work as expected. The ALT key can not work with any key.refer to INTJDK-7623762. RULE "api/javax_swing/interactive/JMenuItemTests_JMenuItem" TestCase [JMenuItemTest0003] JMenuItem setMnemonic() does not behave as expected. The ALT key can not work with any key.refer to INTJDK-7623762. RULE "api/javax_swing/interactive/JMenuItemTests_JMenuItem" TestCase [JMenuItemTest0004] JMenuItem setAccelerator(KeyStroke) does not behave as expected. The ALT key can not work with any key.refer to INTJDK-7623762. RULE "api/javax_swing/interactive/JTextAreaTests_JTextArea" TestCase [JTextAreaTest0028] setFocusAccelerator() method does not work as expected. The ALT key can not work with any key.refer to INTJDK-7623762.
27-05-2016