dukeify / fake-jni

An implementation of the JNI and JVMTI with support for direct interaction between natively registered classes and JVM objects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix unsafe function casts in JMethodID::directInvoke

Matthewacon opened this issue · comments

The function pointer casts in JMethodID::directInvoke, (/*...*/)getFunctionProxy<A>(), do not match the correct type for CX::va_list_t&. Add an IILE with a constexpr switch to cast to the correct type.