summaryrefslogtreecommitdiffstats
path: root/tests/bugs/SofteningTooMuch.java
blob: 164adb24c74a014ace0f8a7ecf8239748068930e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// pr 48522

public class SofteningTooMuch {
	public static void main(String args[]) {
		throw new Exception("should be a compiler error here");
	}
}

class FooException extends Exception {}

aspect ExcPolicy {
	declare soft: FooException: execution(* SofteningTooMuch.*(..));
}