commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOGGING-147) SimpleLog.log - unsafe update of shortLogName
Date Wed, 18 Jul 2012 18:25:35 GMT
Sebb created LOGGING-147:
----------------------------

             Summary: SimpleLog.log - unsafe update of shortLogName
                 Key: LOGGING-147
                 URL: https://issues.apache.org/jira/browse/LOGGING-147
             Project: Commons Logging
          Issue Type: Bug
    Affects Versions: 1.1.1
            Reporter: Sebb


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message