
3 Feb
2009
3 Feb
'09
4:57 p.m.
Szel, Zoltan (IDEAS) wrote:
Hi,
I agree with Maarten, if the r.lock() call would be outside the try block than the original exception would be propagated. Having a look at the RWDictionary example in the javadocs of
ReentrantReadWriteLock(http://java.sun.com/javase/6/docs/api/java/util/concurrent/locks/ReentrantRe...),
they have the call to the lock() method outside of the try block.
That example is part of the official documentation of java.util.concurrent.locks. -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch