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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • 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
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: