Bug 404971

Summary: Different resolution scope for Named and Anonymous pointcut annotations
Product: [Tools] AspectJ Reporter: Chris Col <christiancolombo>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
URL: http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg13931.html
Whiteboard:

Description Chris Col CLA 2013-04-05 02:41:32 EDT
Consider the example below, the two equivalent pointcuts result in one matching (the one below) while the other doesn't match. 


import some_other_package.not_the_one_where_this_aspect_is.Account;

@Aspect
public class MyClass {


//this does not match... 
@Pointcut("execution(* Account.withdraw(..)) && args(amount)")
public void withdr(double amount){}

@Before("withdr(amount)")
public void dosomething1(double amount){}


//this matches
@Before("execution(* Account.withdraw(..)) && args(amount)")
public void dosomthing2(double amount){}

}