aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr129282/ConstructorExecution.aj
blob: 816f223ec0d26e3b7afbb13133beb91cd2ff96bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import java.io.FileNotFoundException;

public aspect ConstructorExecution {

	pointcut p1() : execution(public C1.new());
	
	before() throws FileNotFoundException : p1() {
		throw new FileNotFoundException();
	}
	
}

class C1 {
	
	// shouldn't get the warning on this constructor
	public C1() throws FileNotFoundException {	
	}
	
}