summaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr129282/ConstructorCall.aj
blob: 6bae499663b7665e6727ee50d760f0b7462adc80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.io.FileNotFoundException;

public aspect ConstructorCall {

	pointcut p() : call(public C1.new());
	
	before() throws FileNotFoundException : p() { 
		throw new FileNotFoundException();
	}
	
}

class C1 {
	
	// shouldn't get the warning against the constructor
	public C1() throws FileNotFoundException {	
	}
	
	public void m1() throws FileNotFoundException {
		new C1();
	}
	
}