mirror of
https://github.com/corda/corda.git
synced 2025-06-12 20:28:18 +00:00
specify classloader when calling Class.forCanonicalName in Field and Method; tolerate null argument array in Method.invoke
This commit is contained in:
@ -53,7 +53,8 @@ public class Field<T> extends AccessibleObject {
|
||||
}
|
||||
|
||||
public Class getType() {
|
||||
return Class.forCanonicalName(new String(spec, 0, spec.length - 1, false));
|
||||
return Class.forCanonicalName(class_.getClassLoader(),
|
||||
new String(spec, 0, spec.length - 1, false));
|
||||
}
|
||||
|
||||
public Object get(Object instance) throws IllegalAccessException {
|
||||
|
Reference in New Issue
Block a user