mirror of
https://github.com/corda/corda.git
synced 2025-06-13 04:38:19 +00:00
break each Class, Field, and Method into separate classes
In order to facilitate making the VM compatible with multiple class libraries, it's useful to separate the VM-specific representation of these classes from the library implementations. This commit introduces VMClass, VMField, and VMMethod for that purpose.
This commit is contained in:
@ -27,7 +27,11 @@ public class Object {
|
||||
|
||||
protected void finalize() throws Throwable { }
|
||||
|
||||
public native final Class<? extends Object> getClass();
|
||||
public final Class<? extends Object> getClass() {
|
||||
return avian.SystemClassLoader.getClass(getVMClass(this));
|
||||
}
|
||||
|
||||
private static native avian.VMClass getVMClass(Object o);
|
||||
|
||||
public native int hashCode();
|
||||
|
||||
|
Reference in New Issue
Block a user