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

redefclass027: RedefineClasses fails if the class has an active watch

    XMLWordPrintable

    Details

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

      Description



      Name: pvR10198 Date: 08/28/2002


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

          nsk/jvmdi/RedefineClasses/redefclass027

      The test exercises JVMDI function RedefineClasses(classCount, classDefs).
      The test creates a child thread, sets breakpoint into method run
      and access/modification watchs on StaticInt and InstanceInt fields.
      Then the test starts the thread which does some nesting calls,
      accesses/modifies class fields, and throws/catches an exception.
      While catching breakpoint, single step, wathchpoint, exception and
      frame pop events the test checks their class, current line number,
      names and values of local varaibles, and then redefines
      the thread's class by their own bytes.

      The function call returns JVMDI_ERROR_SCHEMA_CHANGE_NOT_IMPLEMENTED
      if there is the class field access or modification watch.

      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)
      (RedefineClasses#0) unexpected error: JVMDI_ERROR_SCHEMA_CHANGE_NOT_IMPLEMENTED (64)
      (RedefineClasses#1) unexpected error: JVMDI_ERROR_SCHEMA_CHANGE_NOT_IMPLEMENTED (64)
      (RedefineClasses#2) unexpected error: JVMDI_ERROR_SCHEMA_CHANGE_NOT_IMPLEMENTED (64)
      (RedefineClasses#3) unexpected error: JVMDI_ERROR_SCHEMA_CHANGE_NOT_IMPLEMENTED (64)
      (RedefineClasses#4) unexpected error: JVMDI_ERROR_SCHEMA_CHANGE_NOT_IMPLEMENTED (64)
      (RedefineClasses#5) unexpected error: JVMDI_ERROR_SCHEMA_CHANGE_NOT_IMPLEMENTED (64)
      (RedefineClasses#6) unexpected error: JVMDI_ERROR_SCHEMA_CHANGE_NOT_IMPLEMENTED (64)
      Exit Code: 97

      The test will be available in the next release v141r17.
      ======================================================================

      Name: ipR10196 Date: 08/26/2003


      Similar bug is revealed for the corresponding JVMTI function
      RedefineClasses(). The tests affected are:

        nsk/jvmti/RedefineClasses/redefclass027

      Ivan Popov <###@###.###>

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

        Attachments

          Activity

            People

            Assignee:
            sspitsyn Serguei Spitsyn
            Reporter:
            vpnsunw Vpn Vpn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: