JDK-4766477 : 3 JCK1.4a-runtime-api interactive menu tests failed
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux,solaris_8
  • CPU: x86,sparc
  • Submitted: 2002-10-22
  • Updated: 2003-02-20
  • Resolved: 2003-02-04
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 b16Fixed
Related Reports
Relates :  
Relates :  
Description

Name: icR10030			Date: 10/22/2002


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.4.2-b03
JCK            : JCK1.4a-runtime
Platform[s]    : Linux (GNOME)
switch/Mode    : -client -Xfuture
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Falling test[s]:
          api/javax_swing/interactive/JCheckBoxMenuItemTests.html#JCheckBoxMenuItem
              [JCheckBoxMenuItemTest0003, JCheckBoxMenuItemTest0005, JCheckBoxMenuItemTest0006]
          api/javax_swing/interactive/JMenuItemTests.html#JMenuItem
              [JMenuItemTest0004]
          api/javax_swing/interactive/JPMenuTests.html#JPMenuTests
              [JPMenuTests0001, JPMenuTests0002, JPMenuTests0003, JPMenuTests0004, JPMenuTests0005,
               JPMenuTests0006, JPMenuTests0007, JPMenuTests0008, JPMenuTests0009, JPMenuTests0010]

3 JCK1.4a-runtime-api interactive menu tests fail on JDK1.4.2-b03 due to the following reason:
if any part of JCheckBoxMenuItem, JMenuItem or JPMenu is out of main frame the menu disappears
after cursor moving.
The bug is reproducible with mantis b03 on Sawfish WM (Linux) with point-to-focus
focus policy, with 'enter-exit' sub-option.

Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4a/JCK-runtime-14a/tests/api/javax_swing/interactive

jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/mantis/b03/jck14a/linux/turbo_gnome_client_incgc_linux-4/javax_swing/interactive/JCheckBoxMenuItemTests_JCheckBoxMenuItem.jtr
/net/jtgb4u4c.eng/export/sail15/results/mantis/b03/jck14a/linux/turbo_gnome_client_incgc_linux-4/javax_swing/interactive/JMenuItemTests_JMenuItem.jtr
/net/jtgb4u4c.eng/export/sail15/results/mantis/b03/jck14a/linux/turbo_gnome_client_incgc_linux-4/javax_swing/interactive/JPMenuTests_JPMenuTests.jtr

How to reproduce:
=================
Run the following script (you may need to change its variables)

--- script start ---
#!/bin/bash

JCK="/net/linux-15/export/home/java/jck1.4a/JCK-runtime-14a"
JDK="/net/linux-15/export/home/java/jdk1.4.2/linux"
switches="-Xincgc -Xfuture"
CLASSPATH="$JCK/classes:$JCK/javatest.jar"

$JDK/bin/java $switches -cp $CLASSPATH -Djava.security.policy=$JCK/lib/jck.policy javasoft.sqe.tests.api.javax.swing.interactive.JCheckBoxMenuItem.JCheckBoxMenuItemTests -TestDirURL file://$JCK/tests/api/javax_swing/interactive/JCheckBoxMenuItemTests.html#JCheckBoxMenuItem -TestCaseID JCheckBoxMenuItemTest0003 JCheckBoxMenuItemTest0005 JCheckBoxMenuItemTest0006

--- script end ---

Test output:
============
JCheckBoxMenuItemTest0003: Failed. JCheckBoxMenuItem created by JCheckBoxMenuItem(Icon) constructor does not behave as expected.
JCheckBoxMenuItemTest0005: Failed. JCheckBoxMenuItem created by JCheckBoxMenuItem(String, Icon) constructor does not behave as expected.
JCheckBoxMenuItemTest0006: Failed. JCheckBoxMenuItem created by JCheckBoxMenuItem(String, Icon, boolean) constructor does not behave as expected.
STATUS:Failed.test cases: 3; all failed; first test case failure: JCheckBoxMenuItemTest0003

Specific machine info:
======================
Hostname: linux-13
OS: RedHat Linux 7.3 (GNOME)

======================================================================

Name: icR10030			Date: 12/18/2002


One more JCK1.4a test fails due to the bug:
api/java_awt/interactive/PMenuTests.html#PMenuTests

======================================================================

Name: icR10030			Date: 01/15/2003


One more JCK1.4a test fails due to the bug: api/javax_swing/interactive/JComboBoxTests.html#JComboBox





======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis-beta FIXED IN: mantis-beta INTEGRATED IN: mantis-b16 mantis-beta VERIFIED IN: mantis-beta
24-08-2004

EVALUATION As with other system menus swing hides the menus when the window hosting the menus loses focus. In order to hide the window we key off the focusLost event. It would appear that with the window manager SawFish and sloppy focus policy with subconfiguration 'exter-exit point-to-focus' the window hosting the menu is getting a focus lost event, thereby triggering the menus to hide. Refer to the comments for more details. ###@###.### 2002-12-09
09-12-2002