summaryrefslogtreecommitdiffstats
path: root/tests/bugs150/AnnotationPlusPatternParseError.aj
blob: 0c22916eefca0a8996cf0c045278707ed42f1760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import java.lang.annotation.*;

public aspect AnnotationPlusPatternParseError {
	 
	pointcut bar() : call(* (@MemberOfMonitoredSet *)+.*(..));
	
	declare warning : bar() : "humbug";
	
}

@interface MemberOfMonitoredSet {}

@MemberOfMonitoredSet
interface I {}

class C implements I {
	
	void bar() {
		foo();
	}
	
	public void foo() {};
	
}