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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.1.4
    • 1.1.3
    • 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++;
          }
        }
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: