[jboss-jira] [JBoss JIRA] Commented: (JBAOP-536) Generated invokeNext method should be synchronized

Flavia Rainone (JIRA) jira-events at lists.jboss.org
Wed Mar 12 12:06:58 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBAOP-536?page=comments#action_12402494 ] 
            
Flavia Rainone commented on JBAOP-536:
--------------------------------------

You're right. I missed the fact that a new joinpoint instance will be created to run the around advices everytime the instrumented joinpoint gets executed.

> 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