JDK-6468493 : javax/swing/JComboBox/6428549/bug6428549.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: solaris
  • CPU: sparc
  • Submitted: 2006-09-07
  • Updated: 2021-02-17
  • Resolved: 2021-02-17
Related Reports
Relates :  
Description
JDK		    : Fails:  Mustang b97
Platform[s]         : Fails On: Solaris Sparc 9 U8 and 10
Failing Test [s]    : javax/swing/JComboBox/6428549/bug6428549.java


    Test source location:
    =====================
/net/cady/export/jdk1.6.0/latest/ws/j2se/test/javax/swing/JComboBox/6428549/bug6428549.java

    jtr file location:
    ==================
/net/cady/export6/results/mustang/b97/reg/regression-reg-sparc10-2006-08-25-12-20-36-0439/workDir/javax/swing/JComboBox/6428549/bug6428549.jtr

    How to reproduce:
    ====================
#!/bin/ksh
export JAVA_HOME=/java/re/jdk/6.0/promoted/all/b98/binaries/solaris-sparc
/net/cady/export/dtf/unified/knight-ws/suites/regression/jct-tools/2.1.6/archiv/fcs/binaries/solaris/bin/jtreg \
-r:/tmp/report \
-w:/tmp/work \
/net/jre.sfbay/p/v06/jdk/6.0/rc/b98/ws/j2se/test/javax/swing/JComboBox/6428549/bug6428549.java


    Test output:
    =============
----------System.err:(17/1109)----------
java.lang.RuntimeException: JComboBox doesn't properly handle the ENTER key pressing for popup item selection.
        at SwingTestHelper.fail(SwingTestHelper.java:675)
        at bug6428549.onBackgroundThread30(bug6428549.java:139)
        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 SwingTestHelper.invoke(SwingTestHelper.java:609)
        at SwingTestHelper.controlLoop(SwingTestHelper.java:555)
        at SwingTestHelper.access$600(SwingTestHelper.java:173)
        at SwingTestHelper$4.run(SwingTestHelper.java:481)
        at java.lang.Thread.run(Thread.java:619)

Comments
EVALUATION I have two Solaris Sparc machines available, but can reproduce the bug only at one from them. Possibly it also depends on hardware. The problem is in the test: it turned out that under Solaris Sparc platform we cannot rely on the JRobot.mouseMove() method to highlight an item in combo's popup menu by the mouse cursor. Obviously, the method moves cursor so fast, that some important events aren't generated. The only way to solve the problem is to use the JRobot.glide() method, which slowly drags mouse cursor to a desired location. See a new test version in the attached webrev. It isn't a regression. The test behaves in this way since it's creation.
11-09-2006

WORK AROUND Do not run the test uder Solaris Sparc platform.
11-09-2006