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

test_bug: javax/swing/JButton/4485461/bug4485461.java fails on b12

    Details

    • Subcomponent:
    • Resolved In Build:
      tiger
    • CPU:
      x86
    • OS:
      solaris_8, windows_xp
    • Verification:
      Verified

      Description



      Name: asR10013 Date: 01/15/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b12
      Testbase : RegTest-test
      Falling test[s]:
              javax/swing/JButton/4485461/bug4485461.java

      Regression test javax/swing/JButton/4485461/bug4485461.java test fails on JDK1.4.2-b12.
      The test passed on JDK1.4.2-b11.
      The failure is caused by changes made in JTabbedPane.setIconAt(). The code that
      clears the disabledIcon field was removed in b12.

      b11 code:

              /* If the default icon has really changed and we had
               * generated the disabled icon for this page, then
               * clear the disabledIcon field of the page.
               */
              if (icon != oldIcon && page.disabledIcon instanceof UIResource) {
                  page.disabledIcon = null;
              }



      Test source location:
      =====================
      /java/re/jdk/1.4.2/promoted/latest/ws/j2se/test/javax/swing/JButton/4485461/bug4485461.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results/mantis/b12/regtest/x86/s8_-client_linux-10/workDir/test/javax/swing/JButton/4485461/bug4485461.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="/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"

      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,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/JButton/4485461/bug4485461.java"

      --- script end ---

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

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(15/899)----------
      java.lang.RuntimeException: JTabbedPane: setIconAt() didn't change disabled icon
      at bug4485461.error(bug4485461.java:55)
      at bug4485461.testTabbedPane(bug4485461.java:44)
      at bug4485461.main(bug4485461.java:18)
      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:536)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: JTabbedPane: setIconAt() didn't change disabled icon
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: JTabbedPane: setIconAt() didn't change disabled icon
      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: JTabbedPane: setIconAt() didn't change disabled icon


      test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: JTabbedPane: setIconAt() didn't change disabled icon


      Specific machine info:
      ======================
      Hostname: linux-10
      OS: Solaris 8 (x86)
      Hostname: linux-16
      OS: Windows XP Pro



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

        Attachments

          Activity

            People

            • Assignee:
              peterz Peter Zhelezniakov (Inactive)
              Reporter:
              alssunw Als Als (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: