Also,regarding precedence,hope this is
useful
 
The
advice that appears first lexically inside the aspect executes first.
The only
way to control precedence among multiple advices in an aspect is to arrange
them lexically
 
 
From:
aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Echlin Harmer, Elizabeth
Sent: Thursday, September 29, 2005
8:40 AM
To: 'aspectj-users@xxxxxxxxxxx'
Subject: RE: [aspectj-users] error
message: "can't determine precedence..."
 
 
Would
'declare precedence' work? 
-----Original
Message----- 
From: Eduardo Santos Cordeiro [mailto:cordeiro@xxxxxxxxxxx]
Sent: September 28, 2005 7:43 AM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] error
message: "can't determine precedence..." 
 
Hello
everyone, 
I am
trying to compile a simple test in Eclipse 3.1 using the latest 
build of AJDT for that version of
Eclipse. 
I have a
"before" advice and an "around" advice that apply to the
same 
pointcut, and capture the same
context (which is the integer argument of 
a method). Whenever I remove one of
them, the code compiles and the 
other advice works correctly; when
I try to compile the code with both, 
I get the message "can't
determine precedence between two or more pieces 
of advice that apply to the same
join point". 
I sort of
understand the precedence problem with that construction, but 
how could I fix it? How could the
precedence be resolved if both 
pointcuts reside in the same
aspect? 
Regards,
Eduardo
Cordeiro 
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
 
 
  | CONFIDENTIAL AND PRIVILEGED INFORMATION NOTICE
 
 This e-mail, and any attachments, may contain information that
 is confidential, subject to copyright, or exempt from disclosure.
 Any unauthorized review, disclosure, retransmission,
 dissemination or other use of or reliance on this information
 may be unlawful and is strictly prohibited.
 
 AVIS D'INFORMATION CONFIDENTIELLE ET PRIVILÉGIÉE
 
 Le présent courriel, et toute pièce jointe, peut contenir de
 l'information qui est confidentielle, régie par les droits
 d'auteur, ou interdite de divulgation. Tout examen,
 divulgation, retransmission, diffusion ou autres utilisations
 non autorisées de l'information ou dépendance non autorisée
 envers celle-ci peut être illégale et est strictement interdite.
 |