locking in zipfs demo

Joel Uckelman uckelman at nomic.net
Sat Dec 5 13:42:17 PST 2009


Thus spake Alan Bateman:
> 
> Joel - another approach to consider would be simply change 
> ZipFilePath.{begin,end} to invoke fileSystem.{begin,end}. It would avoid 
> changing each usage (I don't have a strong opinion either way).
> 

I think calling the lock via an FS method makes it clearer that it's an
FS-level lock. Calling it via a Path method was the thing which made me
wonder whether it was correct in the first place.
 
-- 
J.


More information about the nio-dev mailing list