mirror of
https://github.com/FranzHaidnor/haidnorJVM.git
synced 2026-03-23 13:23:41 +08:00
update JVMClassLoader.java
This commit is contained in:
@@ -3,6 +3,7 @@ package haidnor.jvm.classloader;
|
|||||||
import haidnor.jvm.bcel.classfile.ClassParser;
|
import haidnor.jvm.bcel.classfile.ClassParser;
|
||||||
import haidnor.jvm.bcel.classfile.JavaClass;
|
import haidnor.jvm.bcel.classfile.JavaClass;
|
||||||
import haidnor.jvm.bcel.classfile.JavaMethod;
|
import haidnor.jvm.bcel.classfile.JavaMethod;
|
||||||
|
import haidnor.jvm.core.JavaExecutionEngine;
|
||||||
import haidnor.jvm.rtda.Metaspace;
|
import haidnor.jvm.rtda.Metaspace;
|
||||||
import lombok.SneakyThrows;
|
import lombok.SneakyThrows;
|
||||||
|
|
||||||
@@ -98,7 +99,7 @@ public class JVMClassLoader {
|
|||||||
}
|
}
|
||||||
for (JavaMethod method : javaClass.getMethods()) {
|
for (JavaMethod method : javaClass.getMethods()) {
|
||||||
if (method.toString().equals("static void <clinit>()")) {
|
if (method.toString().equals("static void <clinit>()")) {
|
||||||
// JavaExecutionEngine.callMethod(null, method);
|
JavaExecutionEngine.callMethod(null, method);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user