|
[
Permlink
| « Hide
]
Henri Yandell added a comment - 03/Nov/07 08:06 AM
Agreed - synchronizing the variable seems the best thing to do.
Henri Yandell made changes - 03/Nov/07 08:06 AM
Patch that liberally splashes synchronized around the variable.
Henri Yandell made changes - 09/Nov/07 08:20 AM
svn ci -m "Applying the synchronization from
Sending src/java/org/apache/commons/lang/exception/ExceptionUtils.java
Henri Yandell made changes - 12/Nov/07 07:58 PM
I think the wrong lock object is used in the synchronization.
The code uses the CAUSE_METHOD_NAMES object as the lock and then changes it in the synchronized block, i.e. the lock object is changed. This occurs in removeCauseMethodName() and addCauseMethodName(). Either lock on the class, or use a dummy static final Object as the lock. This applies to 2.4 branch and trunk
Sebb made changes - 14/Mar/09 02:33 PM
Sebb made changes - 14/Mar/09 02:39 PM
Henri Yandell made changes - 15/Mar/09 02:39 AM
Applied patch:
URL: http://svn.apache.org/viewvc?rev=755391&view=rev
Sebb made changes - 17/Mar/09 08:55 PM
Henri Yandell made changes - 16/May/09 07:32 AM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||