62,628
社区成员
发帖
与我相关
我的任务
分享void m();
descriptor: ()V
flags:
Code:
stack=0, locals=1, args_size=1class Father {
void m(){}
}
class Son extends Father{
void m2(){}
}class jvm.Son extends jvm.Father
minor version: 0
major version: 52
flags: ACC_SUPER
Constant pool:
#1 = Methodref #3.#14 // jvm/Father."<init>":()V
#2 = Class #15 // jvm/Son
#3 = Class #16 // jvm/Father
#4 = Utf8 <init>
#5 = Utf8 ()V
#6 = Utf8 Code
#7 = Utf8 LineNumberTable
#8 = Utf8 LocalVariableTable
#9 = Utf8 this
#10 = Utf8 Ljvm/Son;
#11 = Utf8 m2
#12 = Utf8 SourceFile
#13 = Utf8 Demo2.java
#14 = NameAndType #4:#5 // "<init>":()V
#15 = Utf8 jvm/Son
#16 = Utf8 jvm/Father
{
jvm.Son();
descriptor: ()V
flags:
Code:
stack=1, locals=1, args_size=1
0: aload_0
1: invokespecial #1 // Method jvm/Father."<init>":()V
4: return
LineNumberTable:
line 13: 0
LocalVariableTable:
Start Length Slot Name Signature
0 5 0 this Ljvm/Son;
void m2();
descriptor: ()V
flags:
Code:
stack=0, locals=1, args_size=1
0: return
LineNumberTable:
line 14: 0
LocalVariableTable:
Start Length Slot Name Signature
0 1 0 this Ljvm/Son;
}那么super是什么(实例常量还是局部变量或者其他)?