[aspectwerkz-dev] [jira] Deleted: (AW-110) Race condition on ThrowsJoinPoint
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
[ http://jira.codehaus.org/browse/AW-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
[email protected] deleted AW-110:
---------------------------------
> Race condition on ThrowsJoinPoint
> ----------------------------------
>
> Key: AW-110
> URL: http://jira.codehaus.org/browse/AW-110
> Project: AspectWerkz
> Issue Type: Bug
> Environment: N/A
> Reporter: Rodrigo Kumpera
> Assignee: Jonas Boner
> Priority: Minor
> Original Estimate: 3 hours
> Remaining Estimate: 3 hours
>
> The method org.codehaus.aspectwerkz.joinpoint.ThrowsJoinPoint:loadAdvices() is not properly synchronized.
> The field m_adviceIndexes is assigned a new value before changes are done to it, so a second thread would synchronize on another object and concurrent modification of it is possible.
> It can be fixed by ether using a local variable to hold the new array until all changes are done, use the Collection.toArray() method instead of the for loop or synchronizing on another object.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email