Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: logback-core
-
Labels:None
Description
The unlock of a lock should, I would even say "must", always be done in
a finally block. Otherwise really bad things (deadlock) can happen if an exception
is thrown.
See http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/locks/Lock.html