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

Regression-test javax/swing/JTree/4795368/bug4795368.java fails

XMLWordPrintable

    • tiger
    • x86
    • windows_xp
    • Verified



      Name: icR10030 Date: 08/21/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b15
      Testbase : Regression-test
      Platform[s] : Windows XP Home
      switch/Mode : -client
      Falling test[s]:
               javax/swing/JTree/4795368/bug4795368.java

      Regression-test javax/swing/JTree/4795368/bug4795368.java test fails with JDK1.5.0-b15
      The test passes in Linux and Solaris
      The test is new in tiger-b15

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/javax/swing/JTree/4795368/bug4795368.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b15/regtest/win32/winXP_smp_linux-21/workDir/test/javax/swing/JTree/4795368/bug4795368.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
      JT_HOME="h:/java/jct"
      JAVA_HOME="h:/java/jdk1.5.0/win32"
      TEST_BASE_PATH="h:/java/regtest.tiger/test"

      TESTWITH=$JAVA_HOME
      TESTJAVA=$JAVA_HOME

      JTOPTS="-client"
      TESTVMOPTS="-client"

      CLASSPATH="$JT_HOME/classes;$JT_HOME/lib/javatest.jar;$JT_HOME/lib/jtreg.jar;$JT_HOME/jemmy/jemmy.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,windir=$windir,PATH=${SHELL%/*},CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST=
      -DDISPLAY=:0 -DlocalHost="linux-21" -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/4795368/bug4795368.java"

      --- script end ---

      Script output:
      ==============

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/198)*----------
      command: compile h:\java\regtest.tiger\test\javax\swing\JTree\4795368\..\..\regtesthelpers\JRobot.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 2.297
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:build
      ----------messages:(3/97)----------
      command: build bug4795368
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0
      result: Passed. No need to compile: bug4795368.java

      #section:main
      ----------messages:(3/110)----------
      command: main bug4795368
      reason: User specified action: run main bug4795368
      elapsed time (seconds): 6.235
      ----------System.out:(13/222)----------
      key 36 pressed
      selectionChanged
      Selected row: 0
      key 40 pressed
      selectionChanged
      Selected row: 1
      key 40 pressed
      selectionChanged
      Selected row: 2
      key 40 pressed
      selectionChanged
      Selected row: 3
      key PLUS pressed
      ----------System.err:(16/873)----------
      java.lang.IllegalArgumentException: Invalid key code
      at sun.awt.windows.WRobotPeer.keyPress(Native Method)
      at java.awt.Robot.keyPress(Robot.java:214)
      at JRobot.hitKey(JRobot.java:69)
      at bug4795368.main(bug4795368.java:71)
      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:324)
      at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
      at java.lang.Thread.run(Thread.java:549)

      JavaTest Message: Test threw exception: java.lang.IllegalArgumentException: Invalid key code
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.IllegalArgumentException: Invalid key code
      result: Failed. Execution failed: `main' threw exception: java.lang.IllegalArgumentException: Invalid key code


      test result: Failed. Execution failed: `main' threw exception: java.lang.IllegalArgumentException: Invalid key code


      Specific machine info:
      ======================
      Hostname: linux-21
      OS: Windows XP Home



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

            moasunw Moa Moa (Inactive)
            ichesunw Iche Iche (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: