mirror of
https://github.com/corda/corda.git
synced 2025-06-14 13:18:18 +00:00
maintain a table to look up methods called via JNI
This simplifies the JNI implementation for looking up methods. It also fixes a bug where an applications calls GetStaticMethodID with class A and then calls CallStatic<Type>Method with class B which extends A. The old code would look in the wrong method table and thus call the wrong method.
This commit is contained in:
@ -17,6 +17,7 @@ public class Method<T> extends AccessibleObject implements Member {
|
||||
private byte parameterFootprint;
|
||||
private short flags;
|
||||
private short offset;
|
||||
private int nativeID;
|
||||
private byte[] name;
|
||||
private byte[] spec;
|
||||
private Class<T> class_;
|
||||
|
Reference in New Issue
Block a user