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

JDI: StackFrame.visibleVariables() fails when stopped at a ' } else {' line

XMLWordPrintable

    • generic
    • generic

      For example:
            if (abc == 0) {
                  int ww = 89;
                  int xx = 90;
              } else {
      If a JDI client is stopped on the } else { line and calls StackFrame.visibleVariables(),
      it won't see ww and xx even though they are still in scope.

      Run this jtreg test to reproduce:
         /java/svc/ws/regressionTestsInWaiting/JdbWrongLocals.sh

            pgovereau Paul Govereau (Inactive)
            jjh James Holmlund (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: