Side effects of throwing an exception inside a synchronized clause?

I see no side-effect.

The lock is guaranteed to be terminated in all cases, and an exception is no exception (pun intended).

Leave a Comment