Re: JavaMemoryModel: Finalizers

From: Bill Pugh (pugh@cs.umd.edu)
Date: Mon Apr 07 2003 - 13:39:00 EDT


At 9:37 AM -0700 4/7/03, Joshua Bloch wrote:
>>
>>Not all security managers allow reflective access that violations
>>access controls.
>
>What do access controls have to do with it? Suppose *all* access to
>the field was via reflection, hence invisible to static analysis.
>Am I being dense here? I must be missing something.

If
   * a field is private or package protected
   * the package is sealed, and
   * there is no read of the field nor reflection in the package

You know that the field will not be read.

        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:43 EDT