mirror of
https://github.com/FranzHaidnor/haidnorJVM.git
synced 2026-03-13 21:43:42 +08:00
update
This commit is contained in:
@@ -54,7 +54,7 @@ public class Interpreter {
|
||||
}
|
||||
i += instruction.offSet();
|
||||
}
|
||||
log.debug("{}└──────────────────", blank);
|
||||
log.debug("{}└──────────────────[{}] {} | {} ", blank, frameCount + 1, frame.aKlass.getClassName(), frame.getMethod());
|
||||
frameCount--;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
package haidnor.jvm.test.clazz;
|
||||
|
||||
public class Student extends Human {
|
||||
|
||||
private int count = 1;
|
||||
|
||||
public static String school = "Hello World!";
|
||||
|
||||
public void method1() {
|
||||
System.out.println("method1");
|
||||
method2();
|
||||
}
|
||||
|
||||
public void method2() {
|
||||
System.out.println("method2");
|
||||
method3();
|
||||
}
|
||||
|
||||
public void method3() {
|
||||
System.out.println("method3");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ public class Demo4 {
|
||||
|
||||
public static void main(String[] args) {
|
||||
Student student = new Student();
|
||||
System.out.println(Student.school);
|
||||
student.method1();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user