The JNI field access methods will not try to enforce strict-field access rules, so it is up to the programmer to use JNI functions correctly with strict fields. The JNI specification needs to make this clear. This is similar to how the specification was updated to make it clear that JNI does not adhere to the final-means-final rules either. We can also add a note about this in the "error handling" section.
- relates to
-
JDK-8378185 JVM implementation of strict field initialization
-
- Proposed
-