misleading error when the 'locals' command is issued on a running thread

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 1.1.4
    • Affects Version/s: 1.1.3
    • Component/s: core-svc
    • 1.1.4
    • generic
    • windows_95
    • Not verified

      When the 'locals' command is issued on a running thread, the error message is misleading (in a way which can be frustrating).


      Type the following:

      jdb Test
      run
      locals


      The output is

        No local variables: try compiling with -g

      But this is misleading - it SHOULD say

        Thread isn't suspended.


      --- Here is the test case code:

      public class Test
      {
        public static void main(String argv[])
        {
          int j = 0;
          while (true) {
            j++;
          }
        }
      }

            Assignee:
            Robert Field (Inactive)
            Reporter:
            Richard Schiavi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: