Bug 318825 - Compilation error for composite annotation parameter pointcut
Summary: Compilation error for composite annotation parameter pointcut
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.6.9   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-04 18:01 EDT by Anwar Rizal CLA
Modified: 2010-07-04 18:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.