[concurrency-interest] File object is not immutable?
stanimir at riflexo.com
Wed Feb 15 14:33:20 EST 2012
Ruslan Cheremin wrote:
> I mean, there is
> native calls to FileSystem in constructor and deserialization, which
> can create membars implictly...
> Cheremin Ruslan
It'd not matter as the assignment is performed after the calls to fs, i.e.
this.prefixLength = fs.prefixLength(this.path);
Also java.io.File can be subclassed (and it is), so even if the java.io.File
is safe for publishing, nothing can be said about the subclasses. Hence I'd
assume, unless safe published it's not "safe".
View this message in context: http://old.nabble.com/File-object-is-not-immutable--tp33329436p33331282.html
Sent from the JSR166 Concurrency mailing list archive at Nabble.com.
More information about the Concurrency-interest