JDK-6236236 : JCK 14a failure: api/javax_swing/interactive/JMenuItemTests setAccelerator(KeyStroke) Test
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.2_08
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux
  • CPU: generic
  • Submitted: 2005-03-04
  • Updated: 2011-01-19
  • Resolved: 2005-09-08
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.
Other
1.4.2_09Resolved
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
api/javax_swing/interactive/JMenuItemTests [JMenuItemTest0004] is behaving differently on differnt versions of linux:

This test requires the tester to press [Shift-1] through [Shift-4] to select 4 menu items. When the accelerator keys are used, an option showing which one was used indicates this.

When testing on RHEL3, JDS R3 b27, Suse 9.2 Pro  the [Shift-3] combination does not do anything. All other combinations however, DO select the 1st, 2nd and 4th Menu Option. 

I expected this to be a testcase bug (as it may be) but when I ran the test on RHEL4 and JDS R3 b21 the [Shift-3] key worked as expected. It also works OK on Windows.

This is not a regression as it happens in 1.4.2-b28. It also happens in 5.0u3.

There have been several bugs logged against this test case, but none (that i can find) are the same as this issue, see the related CRs for these.

The test location for your reference is:

/net/latte.ireland/export/home4/jck/JCK-runtime-14a/tests/api/javax_swing/interactive/JMenuItemTests.java

###@###.### 2005-03-04 14:58:50 GMT

This morning I ran the test on my sunray (sol 9 sparc) and the test failed also, indicating this is not a platform dependant issue. It also failed on a Solaris 8 sparc machine.

I then tried it on Solaris 10 x86 b74. In both CDE & JDS the [Shift-3] key worked as expected.
###@###.### 2005-03-07 12:00:21 GMT

Comments
EVALUATION Since this is platform specific, giving AWT first crack at this. ###@###.### 2005-03-04 20:35:16 GMT I haven't managed to reproduce the problem on SuSe9.2 KDE env. Seems that this is a WM-specific problem. Asking submitter about further info. ###@###.### 2005-03-11 14:39:49 GMT ###@###.### 2005-03-23 09:59:21 GMT
04-03-2005