Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Execution joinpoint and synchronization

Hi

I was wondering if anyone knows the exact semantics of the execution
pointcut when used on synchronized methods? At what point does the
synchronization take place related to the advice and the join point?

For instance in the following example has the synchronization taken place
before the advice is executed and is the monitor lock released after
proceed() returns or after the advice returns?

pointcut test_execution() : execution( * examples.Test.test(..) );

Object around() : test_execution(){

    //some code

   returnValue = proceed();

   //some code
   return returnValue;

}

Any help is greatly appreciated.

- oyse

--
View this message in context: http://www.nabble.com/Execution-joinpoint-and-synchronization-t1303145.html#a3471954
Sent from the AspectJ - users forum at Nabble.com.



Back to the top