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

SimpleLog.log - unsafe update of shortLogName

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.1
    • 1.1.2
    • 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

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: