[concurrency-interest] 3 rules of final field semantics

Mohan Radhakrishnan radhakrishnan.mohan at gmail.com
Tue Dec 27 04:10:56 EST 2011


I was thinking that this

        	v.afield = 1;

        	finalField = v;
        	
        	rule2 = new FinalRule2(); //sharedref

is equivalent to

v.afield = 1; x.finalField = v; ... ; sharedRef = x;

Earlier I was thinking that we are not concerned with patterns like
this because Java takes care of it !

Thanks,
Mohan


More information about the Concurrency-interest mailing list