AccessibleObject::canAccess, setAccessible, trySetAccessible are @CS methods. It may result in NPE when invoked by JNI code with no java frame on stack. They should be examined and define the behavior.
JDK-8221530Field::get and reflective member access not handling caller = null when invoked by JNI code with no java frames on stack
JDK-8177155Examine @CS methods when called from attached thread with no caller