-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2
-
b19
-
x86
-
solaris_8
-
Verified
Name: aaR10208 Date: 03/11/2003
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2-b18
Testbase : RegTest-test
Platform[s] : Solaris 8 (x86)
switch/Mode : -client
Falling test[s]: javax/swing/JTree/4633594/bug4633594.java
RegTest-test javax/swing/JTree/4633594/bug4633594.java test fails on JDK1.4.2-b18.
The test creates JFrame with JTree within and then waits for focusGained event.
The test does not call requestFocus for the frame and incorrectly assumes that JFrame
always gets the focus on its activation, so the test intermittently fails.
Test source location:
=====================
/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/javax/swing/JTree/4633594/bug4633594.java
/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/javax/swing/JTree/4633594/bug4633594.html
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results/mantis/b18/regtest/x86/s8_-client_linux-10/workDir/test/javax/swing/JTree/4633594/bug4633594.jtr
How to reproduce:
=================
Run the following script (you may need to change its variables)
--- script start ---
#!/bin/sh
JT_HOME="/java/re/jct-tools/3.1.3/promoted/fcs/latest/binaries"
JAVA_HOME="/java/re/jdk/1.4.2/promoted/latest/binaries/solaris-i586"
TEST_BASE_PATH="/java/re/jdk/1.4.2/promoted/latest/ws/j2se/test"
#JT_HOME="/net/linux-15/export/home/java/jct"
#JAVA_HOME="/net/linux-15/export/home/java/jdk1.4.2/x86"
#TEST_BASE_PATH="/net/linux-15/export/home/java/regtest/test"
RESULT_DIR=`pwd`
WORK_DIR=$RESULT_DIR/workDir/test
REPORT_DIR=$RESULT_DIR/reportDir
TESTWITH=$JAVA_HOME
TESTJAVA=$JAVA_HOME
JTOPTS="-client"
TESTVMOPTS="-client"
CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"
export JAVA_HOME
export JT_HOME
export TESTWITH
export CLASSPATH
mkdir -p $WORK_DIR/scratch 2>&1
mkdir -p $WORK_DIR/jtData 2>&1
mkdir -p $REPORT_DIR 2>&1
#rm $WORK_DIR/jtData/ResultCache.jtw 2>&1
cd $WORK_DIR/scratch
$JAVA_HOME/bin/java -cp $CLASSPATH $JTOPTS -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-10" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/javax/swing/JTree/4633594/bug4633594.java"
--- script end ---
Test output (jtr part):
=======================
----------System.err:(5/346)----------
java.lang.Error: Focus wasn't transferred to the proper component
at bug4633594.destroy(bug4633594.java:61)
at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:156)
at java.lang.Thread.run(Thread.java:534)
STATUS:Failed.Applet thread threw exception: java.lang.Error: Focus wasn't transferred to the proper component
result: Failed. Execution failed: Applet thread threw exception: java.lang.Error: Focus wasn't transferred to the proper component
test result: Failed. Execution failed: Applet thread threw exception: java.lang.Error: Focus wasn't transferred to the proper component
Specific machine info:
======================
Hostname: linux-10
OS: Solaris 8 (x86)
======================================================================