JavaMemoryModel: Legality of native code changing final fields

From: Bill Pugh (
Date: Thu Jun 07 2001 - 20:41:17 EDT

Tim Lindholm and I checked out Sheng Liang's AW book on JNI, and in
section 10.9, page 138, it pretty clearly states that JNI code
changing final fields has undefined semantics that could include
corrupting or crashing the VM.

Of course, if it turns out that it is being used in important
applications, we still have to worry about it.

And there is always, System.out and System.err.

JavaMemoryModel mailing list -

This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:31 EDT