[jboss-jira] [JBoss JIRA] Commented: (JBAOP-536) Generated invokeNext method should be synchronized
Flavia Rainone (JIRA)
jira-events at lists.jboss.org
Tue Mar 11 00:34:57 EDT 2008
[ http://jira.jboss.com/jira/browse/JBAOP-536?page=comments#action_12402058 ]
Flavia Rainone commented on JBAOP-536:
--------------------------------------
If the joinpoint is executed by two threads at the same time, wouldn't the currentInterceptor field be accessed concurrently?
> Generated invokeNext method should be synchronized
> --------------------------------------------------
>
> Key: JBAOP-536
> URL: http://jira.jboss.com/jira/browse/JBAOP-536
> Project: JBoss AOP
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 2.0.0.CR7
> Reporter: Flavia Rainone
> Assigned To: Flavia Rainone
> Fix For: 2.0.0.CR8
>
>
> JoinPointGenerator generates a invokeNext method that manipulates the InvocationBase.currentInterceptor field.
> To avoid the scenario where two threads increment and/or decrement the value of this field concurrently, this method body must be synchronized.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list