Get the javap's output for any class (e.g.
public class A {
public void a() {
}
})
for "-verbose" option.
LineNumberTable/LocalVariableTable are indented right relatively to the code section.
...........
public a.A();
descriptor: ()V
flags: ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
LineNumberTable:
line 9: 0
LocalVariableTable:
Start Length Slot Name Signature
0 5 0 this La/A;
...........
At the same time for "-c -l" option combination the output looks correct:
...............
public class a.A {
public a.A();
Code:
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
LineNumberTable:
line 9: 0
LocalVariableTable:
Start Length Slot Name Signature
0 5 0 this La/A;
...............
public class A {
public void a() {
}
})
for "-verbose" option.
LineNumberTable/LocalVariableTable are indented right relatively to the code section.
...........
public a.A();
descriptor: ()V
flags: ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
LineNumberTable:
line 9: 0
LocalVariableTable:
Start Length Slot Name Signature
0 5 0 this La/A;
...........
At the same time for "-c -l" option combination the output looks correct:
...............
public class a.A {
public a.A();
Code:
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
LineNumberTable:
line 9: 0
LocalVariableTable:
Start Length Slot Name Signature
0 5 0 this La/A;
...............
- relates to
-
JDK-8345145 Display javap LineNumberTable and LocalVariableTable iff disassembled code output with `-c` or `-v`
-
- Resolved
-
-
JDK-8345123 Consider adding opcode count or code size output to javap
-
- New
-
- links to
-
Commit(master) openjdk/jdk/1e3a0fdb
-
Review(master) openjdk/jdk/22359