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

After a redefineClasses, StackFrame.thisObject() gets JDWP Error 23

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 5.0
    • 1.4.0, 1.4.2
    • vm-legacy
    • generic, sparc
    • generic, solaris_7

        The testcase is RedefinePrintStatic.sh in regressionTestsInWaiting.

        The testcase runs jdb on a debuggee. It stops in a method, does a redefineClasses which deletes a line in that method and then prints a static var. This causes the JDWP Error 23 ( invalid method ID) error.

        When the test is run with -dbgtrace passed to jdb, the error is seen
        to come out here:

        [JDI: Sending Command(id=270) JDWP.StackFrame.ThisObject]
        [JDI: Sending: thread(ThreadReferenceImpl): ref=1]
        [JDI: Sending: frame(long): 1]
        com.sun.jdi.InternalException: Unexpected JDWP Error: 23
         


        Name: vpR10197 Date: 08/27/2002


        This bug also affects the following test from testbase_nsk:

            nsk/jdi/VirtualMachine/redefineClasses/redefineclasses032

        The test will be available in the next release v141r17.

        Vitali Provodine <###@###.###>


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

              swamyv Swamy Venkataramanappa
              jjh James Holmlund (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: