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.
=============
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.
- relates to
-
JDK-4794754 Javap indentations dont work on -l, -s, -c options
-
- Closed
-