David_W (70) [Avatar] Offline
#1
Normally, the lock call would be outside of the try block. Otherwise, if there is some exception in the lock call, the unlock would be attempted in the finally block.
David_W (70) [Avatar] Offline
#2
Re: listing 13.17 locking in try block
And the aspect in 13.18 has the same effect - a failure to lock in the before advice will try to unlock in the after advice.
ramnivas (171) [Avatar] Offline
#3
Re: listing 13.17 locking in try block
Good catch. Thanks to modularity, fixing the aspect implementation is easy!

Thanks for all other catches as well. I will address them all as I go through each typeset chapter.

-Ramnivas