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

redefclass011: RedefineClasses fails to return JVMDI_ERROR_INVALID_CLASS

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      mantis
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_7
    • Verification:
      Verified

      Description



      Name: pvR10198 Date: 08/05/2002


      The Hotspot VM (build 1.4.1-beta-b18) fails the following test
      from testbase_nsk:

          nsk/jvmdi/RedefineClasses/redefclass011

      The test exercises JVMDI function RedefineClasses(classCount, classDefs).
      The test checks if the function returns JVMDI_ERROR_INVALID_CLASS
      if classDefs[].clazz field is null.

      The test is based on the following assertion from JVMDI spec:

      | Redefine Classes
      |
      | typedef struct {
      | jclass clazz; /* Class to be redefined */
      | jint class_byte_count; /* number of bytes defining class (below) */
      | jbyte *class_bytes; /* bytes defining class */
      | /* (in Class File Format of JVM spec) */
      | } JVMDI_class_definition;
      |
      | jvmdiError
      | RedefineClasses(jint classCount, JVMDI_class_definition *classDefs)
      |
      | ... (skipped)
      |
      | This function returns either a universal error or one of the following errors:
      |
      | JVMDI_ERROR_NULL_POINTER
      | Invalid pointer: classDefs or one of class_bytes is NULL.
      |
      | JVMDI_ERROR_INVALID_CLASS
      | An element of classDefs is not a valid class.

      To reproduce the bug run script in GammaBase/Bugs/<this bug number> directory:

          sh doit.sh <JAVA_HOME>

      Running the test outputs:

      java version "1.4.1-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b18)
      Java HotSpot(TM) Client VM (build 1.4.1-rc-b18, mixed mode)
      Error expected: JVMDI_ERROR_INVALID_CLASS,
              actual: JVMDI_ERROR_NULL_POINTER (100)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              busersunw Btplusnull User (Inactive)
              Reporter:
              vpnsunw Vpn Vpn (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: