On 11/22/2010 07:52 AM, Alan Bateman wrote:

This is a patch to default deserialization so that it uses
volatile-write when setting final fields:
http://cr.openjdk.java.net/~alanb/6647361/webrev/

Please don't go farther down the path of "only JDK/proprietary classes can properly deserialize". Bad enough that proper implementation of the spec requires using sun.reflect.ReflectionFactory. Requiring Unsafe too would just be irritating.

How about putting this stuff on a public (if privileged) API *first*?

--
- DML

Reply via email to