summaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/SyntaxError.aj
blob: ed0085c747b330f82c92eff06658be286f782136 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
public aspect SyntaxError {

  after(Object x) : execution((@Alien *) Passenger+.new(..)) && this(x) {
	  System.out.println("after alien...");
  }

}

@interface Alien{}

class Passenger {
	
	@Alien Passenger() {}
	
}

class SubPassenger extends Passenger {
	
	@Alien SubPassenger() { super(); }
	
}