Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4771102

TEST_BUG: javax/swing/JRootPane/bug4670486.java failed

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b10
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Description



      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/JRootPane/bug4670486.java

      RegTest-test javax/swing/JRootPane/bug4670486.java test fails on JDK1.4.2-b04
      Here is a part of the test's source (file:javax/swing/JRootPane/bug4670486.java)
      -----
          44 class RobotThread implements Runnable {
          45 public void run() {
      ...
          54 robot.setAutoDelay(250);
          55
          56 // Change the default button to
          57 // force a call to BasicRootPaneUI.updateDefaultButtonBindings()
      ! 58 robot.keyPress(KeyEvent.VK_TAB);
          59
          60 // If the bug exists, then as soon as the menu appears,
      -----
      The test emulates pressing of the TAB key at the line#58, but does not release it.
      This leads to unpredictable behavior of the following keyPress/release events on RH Linux 8.0
      and the test fails.
      Adding "robot.keyRelease(KeyEvent.VK_TAB);" right after linue 58, causes problem to disappear.


      Test source location:
      =====================
      /net/jdk/export/disk8/local.java/regtest/test/javax/swing/JRootPane/bug4670486.java

      jtr file location:
      ==================
      /net/jtgb4u4c.eng/export/sail15/results/mantis/b04/regtest/linux/redhat8.0_gnome_linux-11/javax/swing/JRootPane/bug4670486.jtr

      How to reproduce:
      =================
      Run the following script (you may need to change its variables)
       
      --- script start ---
      #!/bin/sh
      TESTJAVA="/net/jdk/export/disk8/local.java/jdk1.4.2/linux"
      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/JRootPane
      TEST_SHORT_NAME=bug4670486
      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
      $TESTJAVA/bin/java -showversion -cp "$CLASSPATH" -Dtest.src=$TEST_BASE_ROOT/$TEST_PACKAGE $TEST_SHORT_NAME
      --- 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)

      Exception in thread "main" java.lang.RuntimeException: Test failed
              at bug4670486.main(bug4670486.java:187)


      Specific machine info:
      ======================
      Hostname: linux-11
      OS: RedHat Linux 8.0 (GNOME); Focus policy: Click-to-focus.



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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mdavidsosunw Mark Davidson (Inactive)
              Reporter:
              sundrsunw Sundr Sundr (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: