mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
flesh out serialization/deserialization code and fix build
This commit is contained in:
@ -47,7 +47,7 @@ public final class Class <T> {
|
||||
|
||||
private native void initialize();
|
||||
|
||||
static Class forCanonicalName(String name) {
|
||||
public static Class forCanonicalName(String name) {
|
||||
try {
|
||||
if (name.startsWith("[")) {
|
||||
return forName(name);
|
||||
@ -65,6 +65,14 @@ public final class Class <T> {
|
||||
}
|
||||
}
|
||||
|
||||
public Class getComponentType() {
|
||||
if (isArray()) {
|
||||
return forCanonicalName(new String(name, 1, name.length - 2, false));
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public native boolean isAssignableFrom(Class c);
|
||||
|
||||
private Field findField(String name) {
|
||||
|
Reference in New Issue
Block a user