On Monday 15 February 2010 08:52:12 am [email protected]'s 
cat walking on the keyboard wrote:
>  Are you sure you can use proceed method with a before advice? I think you
> can use it only with around advice.
> 


Ops, you are right. However I've sligthly changed my pointcut defintion as 
follows:

private pointcut avoidLockedMethodInvocation( AgentProxy proxy, Lock 
lockingAnnotation ) : call( public * AgentProxy+.*(..) )
                                                                        &&
                                                                        
@annotation(lockingAnnotation)
                                                                        &&
                                                                        target( 
proxy );

Now I've got a warning that states "does not match because declaring type is 
java.lang.Object, if match desired use 
target(whitecat.core.agents.AgentProxy+) [Xlint:unmatchedSuperTypeInCall]"

What does it means? I'm already using a AgentProxy+ as target....

Luca

_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to