Uploaded image for project: 'Commons Logging'
  1. Commons Logging
  2. LOGGING-147

SimpleLog.log - unsafe update of shortLogName

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.1
    • Fix Version/s: 1.1.2
    • Labels:
      None

      Description

      shortLogName is lazily updated, but:

      1) field is not volatile, so is not safely published
      2) fiels is written twice, so if log is called by two threads, one might get a partial update.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb@apache.org Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: