This commit is contained in:
wangxiang
2023-07-21 19:29:46 +08:00
parent 91b1ef53bf
commit a6352b1c9e
4 changed files with 23 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ public class Interpreter {
}
i += instruction.offSet();
}
log.debug("{}└──────────────────", blank);
log.debug("{}└──────────────────[{}] {} | {} ", blank, frameCount + 1, frame.aKlass.getClassName(), frame.getMethod());
frameCount--;
}

View File

@@ -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");
}
}

View File

@@ -6,7 +6,7 @@ public class Demo4 {
public static void main(String[] args) {
Student student = new Student();
System.out.println(Student.school);
student.method1();
}
}