Bug 318825

Summary: Compilation error for composite annotation parameter pointcut
Product: [Tools] AspectJ Reporter: Anwar Rizal <anrizal05>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 1.6.9   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Anwar Rizal CLA 2010-07-04 18:01:54 EDT
Build Identifier: 20100506-2000

The following are two annotation definitions:

public @interface XAnnotation {
	 int    xid() default 0;
}

public @interface YAnnotation {
	int    yid() default 0;
}

Defining the following pointcut raises syntax error [Syntax error on token "(", ")" expected]

pointcut myPointcut1(): 
  execution( @(XAnnotation || YAnnotation(id=9)) * *(..)) ;

Note that 
pointcut myPointcut1(): 
  execution( @(XAnnotation || YAnnotation) * *(..)) ;

works fine.




Reproducible: Always

Steps to Reproduce:
See details.