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

Redefine does not work in for/while loop

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.1
    • Component/s: vm-legacy
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.4.1
    • CPU:
      generic
    • OS:
      solaris_2.6

      Description


      Date: Fri, 26 Jul 2002 20:51:19 -0700
      From: Hin Boen <###@###.###>
      Subject: Redefine does not work in for/while loop
      To: ###@###.###

      Hi JPDA Team,

      Redefine does not work in for/while loop. You should be able to
      reproduce this bug using jdb.exe.

      Steps to reproduce this problem:
         a. add line breakpoint in start()
         b. debug
         c. when breakpoint is hit, type continue. You should see output
      "Before update..."
         d. change "Before update" to "After update"
         e. redefine, and set line breakpoint (see step a)
         f. type continue. You should see output "After update"
         g. change "After update" to "abcde"
         h. redefine, and set line breakpoint (see step a)
         i. type continue. The output is shown as "After update"

         j. to see "abcde" output, users will have to pop the stack, and
      re-execute method start().


      Thanks
      Hin



      Sample program:

      package untitled24;

      public class Untitled3 {

        private void doSomething() {
          System.out.println("Before update...");
        }

        public void start() {
          for (int i=0; i < 100; i++) {
            doSomething(); // add line breakpoint here
          }
        }

        public static void main(String[] args) {
          Untitled3 untitled31 = new Untitled3();
          untitled31.start();
        }
      }




      Name: pvR10198 Date: 08/11/2002


      This bug also affects the following test from testbase_nsk:

          nsk/jvmdi/RedefineClasses/redefclass016

      The test will be available in the next release v141r16.

      Pavel Vysotski <###@###.###>


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

      Name: vpR10197 Date: 08/27/2002


      This bug also affects the following test from testbase_nsk:

          nsk/jdi/VirtualMachine/redefineClasses/redefineclasses031

      The test will be available in the next release v141r17.

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


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

        Attachments

          Activity

            People

            • Assignee:
              swamyv Swamy Venkataramanappa
              Reporter:
              swamyv Swamy Venkataramanappa
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: