On 2009-09-13 18:08:57 -0400, Jeremie Pelletier <[email protected]> said:

foo1.foo(); // ok, synchronized call
synchronized(foo1) foo1.foo(); // warning: recursive synchronization

Why a warning? Monitors are designed to handle recursive synchronization.

Its a performance issue that can easily be avoided, but still generates valid code.

Also, some people consider recursive locks as potential design flaws.
<http://landheer-cieslak.com/wordpress/?p=57>

--
Michel Fortin
[email protected]
http://michelf.com/

Reply via email to