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

Javp Rewrite : Better Indentations Required.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.2
    • 1.4.2
    • tools
    • mantis
    • sparc
    • solaris_9
    • Verified

      For testcase,
      =============
      class C
      {
              public int fInt;
              public char fChar;

              public void doNothing ()
              {
              }

              public int getSomething ()
              {
                      return 5;
              }
      }

      When used with Old Javap
      ========================
      jtools-sqe:/home/vr128054/javap-test 31 % javap C
      Compiled from C.java
      class C extends java.lang.Object {
          public int fInt;
          public char fChar;
          C();
          public void doNothing();
          public int getSomething();
      }

      The New Javap gives the following behaviour
      ===========================================
      tools-sqe:/home/vr128054/javap-test 53 % javap C
      Compiled from "C.java"
      class C extends java.lang.Object{
      public int fInt;
      public char fChar;
      C();
      public void doNothing();
      public int getSomething();
      }


      The first output is more reader-friendly and easily understandable.

            duke J. Duke
            rvijayansunw Ra Vijayan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: