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

REGRESSION: 2 Regtest-test tests fail due to changes in JDI

XMLWordPrintable

    • mantis
    • x86
    • linux, solaris_8, windows_xp
    • Verified



      Name: asR10013 Date: 09/23/2002


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b02
      Testbase : RegTest-test
      Platform[s] : Solaris, Linux, Windows XP
      Falling test[s]:
      com/sun/jdi/Vars.java
      com/sun/jdi/FinalLocals.java

      These tests fail because the order of variables returned by com.sun.jdi.Method.variables()
      is changed in JDK 1.4.2.

      from com/sun/jdi/Vars.jtr:

      normal/variables: ERROR expected: sh,lo,st
            got: st,sh,lo

      from com/sun/jdi/FinalLocals.jtr:

      VARIABLES: ERROR expected: t,k,s1,z,r,b
            got: r,b,s1,z,t,k

      The tests passed on JDK1.4.1-b21.


      jtr file location:
      ==================

      /net/jtgb4u4c.eng/export/sail15/results/mantis/b02/regtest/linux/redhat7.2_gnome_smp__linux-24/workDir/test/com/sun/jdi/FinalLocals.jtr
      /net/jtgb4u4c.eng/export/sail15/results/mantis/b02/regtest/linux/redhat7.2_gnome_smp__linux-24/workDir/test/com/sun/jdi/Vars.jtr

      How to reproduce:
      =================

      Run the following script

      #!/bin/bash

      JDK=/net/linux-15/export/home/java/jdk1.4.2/linux
      TEST_BASE=/net/linux-15/export/home/java/regtest
      TEST_PACKAGE=com/sun/jdi
      TEST_SHORT_NAME=Vars
      TEST_NAME=$TEST_PACKAGE/$TEST_SHORT_NAME
      PS=':'


      TEST_SRC=$TEST_BASE/test/${TEST_NAME}.java


      export CLASSPATH=.${PS}${JDK}${PS}${JDK}/lib/tools.jar${PS}${TEST_BASE}${PS}${TEST_BASE}/test/${TEST_PACKAGE}

      mkdir -p $TEST_PACKAGE

      $JDK/bin/javac -g -classpath $CLASSPATH -d . $TEST_SRC

      echo "$JDK/bin/java -cp $CLASSPATH $TEST_SHORT"

      $JDK/bin/java -cp $CLASSPATH $TEST_SHORT_NAME

      Test output:
      =================

      run args: [TestVars]
      JVM version:1.4.2-beta
      JDI version: 1.4
      JVM description: Java Debug Interface (Reference Implementation) version 1.4
      Java Debug Wire Protocol (Reference Implementation) version 1.4
      JVM Debug Interface version 1.3
      JVM version 1.4.2-beta (Java HotSpot(TM) Client VM, mixed mode)
      abstract/variables: got expected: AbsentInformationException
      abstract/variablesByName: got expected: AbsentInformationException
      abstract/arguments: got expected: AbsentInformationException
      native/variables: got expected: AbsentInformationException
      native/variablesByName: got expected: AbsentInformationException
      native/arguments: got expected: AbsentInformationException
      normal/variables: ERROR expected: sh,lo,st
            got: st,sh,lo
      normal/variablesByName: got expected: st
      normal/arguments: got expected: sh,lo
      Exception in thread "main" java.lang.Exception: Vars: failed
              at Vars.runTests(Vars.java:168)
              at Vars.main(Vars.java:61)


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

            busersunw Btplusnull User (Inactive)
            alssunw Als Als (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: