Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-102

Unsecure usage of locks in AppenderAttachableImpl

    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

        Attachments

          Activity

            People

            • Assignee:
              logback-dev Logback dev list
              Reporter:
              jhuxhorn Joern Huxhorn
            • Votes:
              2 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: