JDK-4960138 : Regression-test javax/swing/JApplet/4707289/bug4707289.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux,windows_2000,windows_xp
  • CPU: x86
  • Submitted: 2003-11-26
  • Updated: 2011-01-19
  • Resolved: 2003-12-15
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
5.0 b32Fixed
Related Reports
Relates :  
Relates :  
Description

Name: iaR10016			Date: 11/26/2003


Filed By       : J2SE-SQA [###@###.###
JDK            : JDK1.5.0-b29, JDK1.5.0-b28, ...
                  (the test fails with JDK1.4.2-b28 because of the bug 4771122)
Testbase       : Regression-test
Platform[s]    : Suse Linux 8.2 (GNOME2), Windows 2000 Pro
switch/Mode    : -client
Falling test[s]: javax/swing/JApplet/4707289/bug4707289.java

Regression-test javax/swing/JApplet/4707289/bug4707289.java test fails with JDK1.5.0-b29.

It seems like bug 4771122 was not fully integrated actually. It was marked as "Integrated in tiger"
at 2003/03/12 and then it was marked as "Verified" at 2003-05-16.

However, I am still able to reproduce the failure using both JDK1.5.0-b29 and JDK1.5.0-b06 with the
same output (tested on Suse Linux 8.1/Gnome2).

Please, see bug 4771122 Evaluation and Comments for more details.

Test source location:
=====================
/java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/javax/swing/JApplet/4707289/bug4707289.java

jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b29/regtest/linux/suse8.2_gnome_linux-2/workDir/test/javax/swing/JApplet/4707289/bug4707289.jtr

How to reproduce:
=================
Run the following script (you may need to change its variables):
--- script start ---
#!/bin/sh
RESULT_DIR=`pwd`
WORK_DIR=$RESULT_DIR/workDir/test
REPORT_DIR=$RESULT_DIR/reportDir

#Paths in Java Software:
JT_HOME="/java/re/jct-tools/3.1.2/archive/fcs/binaries"
JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
JAVA_HOME="/java/re/jdk/1.5.0/promoted/all/b29/binaries/linux-i586"
TEST_BASE_PATH="/java/re/jdk/1.5.0/promoted/all/b29/ws/j2se/test"

#Alternative paths outside Java Software:
#JT_HOME="/net/koori.sfbay/onestop/jct-tools/3.1.2/archive/fcs/binaries"
#JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
#JAVA_HOME="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b29/binaries/linux-i586"
#TEST_BASE_PATH="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b29/ws/j2se/test"

TESTVMOPTS="-client"
CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"
TEST="javax/swing/JApplet/4707289/bug4707289.java"

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 -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-2" -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/$TEST"
--- script end ---

Test output (jtr part):
=======================
----------System.out:(0/0)----------
----------System.err:(5/320)----------
java.lang.Error: Button "Test" didn't gain the focus
     at bug4707289.destroy(bug4707289.java:48)
     at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:156)
     at java.lang.Thread.run(Thread.java:567)
STATUS:Failed.Applet thread threw exception: java.lang.Error: Button "Test" didn't gain the focus
result: Failed. Execution failed: Applet thread threw exception: java.lang.Error: Button "Test" didn't gain the focus

Specific machine info:
======================
Hostname: linux-2
OS: Suse Linux 8.2 (GNOME2)

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

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

EVALUATION Name: apR10133 Date: 11/27/2003 The test was rewritten due to the fix for bug 4721224. The problem is that jtreg sometimes put the applet into the appletviewer when it is already active. As the code responsible for passing focus to the default component is executed when applet window is activated the button doesn't get the focus. ###@###.### ======================================================================
24-08-2004