aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr107059_2.aj
blob: 73045726f579ced7e55e19978baa40b05f2bbf7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
public aspect pr107059_2 {
	
	before() : target(@Foo *) {   // not allowed type pattern in target of course!
		System.out.println("hi");		
	}
	
	void bar(Object o) {
		o.toString();     // generates o hasAnnotation(Foo.class) test
	}
	
}

@interface Foo {}