JavaMemoryModel: Legality of native code changing final fields

From: Bill Pugh (pugh@cs.umd.edu)
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.in, System.out and System.err.

Bill
-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel



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