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

The jdb dump command ignores case distinctions.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 1.1.2
    • Fix Version/s: None
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description

      Sample Program:


      public class BugDemo4 {
          static String BUGDEMO4;
          public static void main(String argv[]) {
              BugDemo4 bd, bugdemo;
              bd = new BugDemo4("foo");
              BUGDEMO4 = "bar";
          }
          public BugDemo4(String s) {
          }
      }



      To illustrate this, enter the following commands in jdb:


      load BugDemo4
      stop in BugDemo4.main
      run BugDemo4
      next
      dump BUGDEMO4



      The dump command displays a BugDemo4 object, not the static String
      BUGDEMO4.

      Our Diagnosis

      The print and dump commands call the RemoteDebugger.FindClass method to
      see if
      BUGDEMO4 is a class name, and apparently FindClass ignores case
      distinctions.
      This causes BUGDEMO4 to be printed (or dumped) as if it were the
      BugDemo4
      class.

      This has been tried with the 1.1.2 Beta made available on 09apr97. It
      still
      fails.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfield Robert Field
                Reporter:
                mmma Marvin Ma (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: