Javap indentations dont work on -l, -s, -c options

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.4.2
    • Component/s: tools
    • sparc
    • solaris_9

      With respect to fix for : 4777337 (Better Indentations required), when used with options -l, -c and -s, the javap dump looks cluttered.

      Better indentations will make the output more readable and easy to comprehend.

      For Eg,

      jtools-sqe:/home/vr128054/vertest/javap 253 % more t.java
      class t
      {
              int i;
              short s;
              float f;
              double g;
              char c;
      }
      jtools-sqe:/home/vr128054/vertest/javap 254 % javap -c t
      Compiled from "t.java"
      class t extends java.lang.Object{
      int i;

      short s;

      float f;

      double g;

      char c;

      t();
        Code:
         0: aload_0
         1: invokespecial #1; //Method java/lang/Object."<init>":()V
         4: return

      }

      jtools-sqe:/home/vr128054/vertest/javap 255 % javap -l t
      Compiled from "t.java"
      class t extends java.lang.Object{
      int i;

      short s;

      float f;

      double g;

      char c;

      t();
        LineNumberTable:
         line 1: 0

      }

      jtools-sqe:/home/vr128054/vertest/javap 256 % javap -s t
      Compiled from "t.java"
      class t extends java.lang.Object{
      int i;
        Signature: I
      short s;
        Signature: S
      float f;
        Signature: F
      double g;
        Signature: D
      char c;
        Signature: C
      t();
        Signature: ()V
      }

            Assignee:
            Jonathan Gibbons
            Reporter:
            Ra Vijayan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: