mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
more work towards OpenJDK classpath support
The biggest change in this commit is to split the system classloader into two: one for boot classes (e.g. java.lang.*) and another for application classes. This is necessary to make OpenJDK's security checks happy. The rest of the changes include bugfixes and additional JVM method implementations in classpath-openjdk.cpp.
This commit is contained in:
@ -47,7 +47,7 @@ public abstract class ClassLoader {
|
||||
}
|
||||
|
||||
return avian.SystemClassLoader.getClass
|
||||
(avian.SystemClassLoader.defineVMClass(this, b, offset, length));
|
||||
(avian.Classes.defineVMClass(this, b, offset, length));
|
||||
}
|
||||
|
||||
protected Class findClass(String name) throws ClassNotFoundException {
|
||||
@ -88,7 +88,7 @@ public abstract class ClassLoader {
|
||||
}
|
||||
|
||||
protected void resolveClass(Class c) {
|
||||
avian.SystemClassLoader.link(c.vmClass, this);
|
||||
avian.Classes.link(c.vmClass, this);
|
||||
}
|
||||
|
||||
private ClassLoader getParent() {
|
||||
|
Reference in New Issue
Block a user