-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2
-
b08
-
x86
-
linux, windows_xp
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2108068 | 5.0 | Andrey Pikalev | P3 | Closed | Fixed | tiger |
Name: aaR10208 Date: 10/30/2002
Filed By : J2SE-SQA [###@###.###
JDK : JDK1.4.2-b04
Testbase : RegTest-test
Platform[s] : RedHat Linux 8.0 (GNOME)
switch/Mode : -client -Xmixed -Xfuture
Falling test[s]:
javax/swing/JApplet/4707289/bug4707289.java
Here is a part of the test's source (file: javax/swing/JApplet/4707289/bug4707289.java)
-----
31 public void start() {
32 try {
33 robot = new Robot();
34 SwingUtilities.invokeLater(new Runnable() {
35 public void run() {
36 try {
37 robot.keyPress(KeyEvent.VK_TAB);
38 robot.keyRelease(KeyEvent.VK_TAB);
-----
The test tries to press/release the TAB key programmatically.
The problem is that JApplet.start() method could be called when applet is not yet shown in the
browser/appletviewer, so the applet does not receive appropriate events and the test fails.
Test source location:
=====================
/net/jdk/export/disk8/local.java/jdk1.4.2/ws/j2se/test/javax/swing/JApplet/4707289/bug4707289.java
jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/mantis/b04/regtest/linux/redhat8.0_gnome_linux-11/javax/swing/JApplet/4707289/bug4707289.jtr
How to reproduce:
=================
1. Run the following script on RH Linux 8.0 (you may need to change its variables)
2. Wait for a while after the applet with a "Test" buttor appears on the screen,
then close the appletviewer's window.
--- script start ---
#!/bin/sh
TESTJAVA="/net/jdk/export/disk8/local.java/jdk1.4.2/linux-i386"
export TESTJAVA
TEST_BASE="/net/jdk/export/disk8/local.java/jdk1.4.2/ws/j2se/"
JCT_PATH="/net/linux-15/export/home/java/jct"
JT="$JCT_PATH/lib/javatest.jar"
JTREG="$JCT_PATH/lib/jtreg.jar"
TEST_BASE_ROOT="$TEST_BASE/test"
TEST_PACKAGE=javax/swing/JApplet/4707289
TEST_SHORT_NAME=bug4707289
TEST_NAME=$TEST_PACKAGE/$TEST_SHORT_NAME
export TESTSRC="$TEST_BASE_ROOT/$TEST_PACKAGE"
export CLASSPATH=".:$TESTJAVA:$TESTJAVA/lib/tools.jar:$TEST_BASE:$TESTSRC:$JT:$JTREG"
$TESTJAVA/bin/javac -g -classpath "$CLASSPATH" -d . $TEST_BASE_ROOT/$TEST_NAME.java
cp $TEST_BASE_ROOT/$TEST_NAME.html ./
$TESTJAVA/bin/appletviewer -J-showversion -Xnosecurity $TEST_SHORT_NAME.html
--- script end ---
Test output:
============
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b04)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b04, mixed mode)
Warning: disabling security.
java.lang.Error: Button "Test" didn't gain the focus
at bug4707289.destroy(bug4707289.java:52)
at sun.applet.AppletPanel.run(AppletPanel.java:401)
at java.lang.Thread.run(Thread.java:536)
Specific machine info:
======================
Hostname: linux-11
OS: RedHat Linux 8.0 (GNOME)
======================================================================
- backported by
-
JDK-2108068 TEST_BUG: RegTest-test javax/swing/JApplet/4707289/bug4707289.java failed, Linux
- Closed
- relates to
-
JDK-4960138 Regression-test javax/swing/JApplet/4707289/bug4707289.java fails
- Closed