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

REGRESSION: Reg-test .../JPopupMenu/4769039/bug4769039.java fails

    Details

    • Subcomponent:
    • CPU:
      x86, sparc
    • OS:
      solaris_9, solaris_10

      Description



      Name: vsR10238 Date: 08/14/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b14
      Testbase : Regression-test
      Platform[s] : Solaris 9 (sparc) (CDE), Solaris 10 (x86) (GNOME), Redhat 2.1 Advanced Server
      switch/Mode : -client, -d64, -server
      Falling test[s]:
               javax/swing/JPopupMenu/4769039/bug4769039.java

      Regression-test javax/swing/JPopupMenu/4769039/bug4769039.java test fails on JDK1.5.0-b14, b13.

      The test passes with JDK1.4.2-b28, JDK1.5.0-b12.

      Although the test failed on RH2.1AS (64 bit) with b13, the test passed on RH2.1AS(32 bit) with b14.

      I tried to modify bug4769039.java as follows:
              menuItem.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                       System.out.println("ACTION: "+e); // <<==
                       if(textArea.getText().equals("Test")) {

      And I got the following in the jtr file:
      ----------System.out:(2/548)----------
      ACTION: java.awt.event.ActionEvent[ACTION_PERFORMED,cmd=Accept,when=1060871576853,modifiers=Button1] on javax.swing.JMenuItem[,1,323,69x21,alignmentX=0.0,alignme
      ntY=0.0,border=javax.swing.plaf.metal.MetalBorders$MenuItemBorder@203c31,flags=264,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,disabledSe
      lectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=2,bottom=2,right=2],paintBorder=true,paintFocus=false,pressedIcon=,rolloverEnabled=false,rollover
      Icon=,rolloverSelectedIcon=,selectedIcon=,text=Accept]
      Equals!!!

      Running the test with 1.5.0-b12 (when the test passes) produces no "ACTION: ..." output meaning
      that actionPerformed is not called.

      Please note that the failure does not occure on Windows.

      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/javax/swing/JPopupMenu/4769039/bug4769039.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b14/regtest/x86/sol10_x86_gnome_linux-18/workDir/test/javax/swing/JPopupMenu/4769039/bug4769039.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.5.0/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:$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,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JT_HOME/jemmy/jemmy.jar,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-18" -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/JPopupMenu/4769039/bug4769039.java"

      --- script end ---

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

      Test output (jtr part):
      =======================
      ----------System.out:(1/10)----------
      Equals!!!
      ----------System.err:(5/291)----------
      java.lang.RuntimeException: Test failed
      at bug4769039.init(bug4769039.java:48)
      at com.sun.javatest.regtest.AppletWrapper$AppletThread.run(AppletWrapper.java:132)
      at java.lang.Thread.run(Thread.java:549)
      STATUS:Failed.Applet thread threw exception: java.lang.RuntimeException: Test failed
      result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Test failed


      test result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: Test failed


      Specific machine info:
      ======================
      Hostname: linux-18
      OS: Solaris 10 (x86) (GNOME)
      Hostname: novo48
      OS: Solaris 9 (sparc) (CDE)



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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kizune Alexander Zuev
                Reporter:
                vshsunw Vsh Vsh (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: