mirror of
https://github.com/corda/corda.git
synced 2025-06-16 06:08:13 +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:
@ -13,6 +13,7 @@ package java.lang.reflect;
|
||||
import avian.VMField;
|
||||
import avian.AnnotationInvocationHandler;
|
||||
import avian.SystemClassLoader;
|
||||
import avian.Classes;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
@ -204,7 +205,7 @@ public class Field<T> extends AccessibleObject {
|
||||
} else {
|
||||
throw new IllegalArgumentException
|
||||
("needed " + getType() + ", got "
|
||||
+ Class.getName(SystemClassLoader.vmClass(target)) +
|
||||
+ Class.getName(Classes.vmClass(target)) +
|
||||
" when setting " + Class.getName(vmField.class_) + "." + getName());
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user