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

Prevent jni class pointer types from being dereferenced except in the case of implicit or explicit conversion

Matthewacon opened this issue · comments

Right now the conversion operators for all JNI classes allow union_casting to their fake-jni equivalents, however they do not explicit disallow dereferencing without conversion. This behaviour should be disallowed to prevent UB.