JDK-4794754 : Javap indentations dont work on -l, -s, -c options
  • Type: Bug
  • Component: tools
  • Sub-Component: javap
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_9
  • CPU: sparc
  • Submitted: 2002-12-17
  • Updated: 2009-08-01
  • Resolved: 2009-08-01
Related Reports
Duplicate :  
Relates :  
Description
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
}


Comments
EVALUATION We'll look at this. ###@###.### 2002-12-17 Needs to be addressed but due to prioritization and time constraints won't get done until after 1.5. Aiming to get this done asap after 1.5 release ###@###.### 2003-11-10
17-12-2002