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
}
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
}
- duplicates
-
JDK-6867671 javap whitespace formatting issues
-
- Closed
-
- relates to
-
JDK-4777337 Javp Rewrite : Better Indentations Required.
-
- Closed
-