blob: 4b34dcae1050ad214d66a89c1a8ca942ac993a4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
public aspect CallPointcutMatchingErrorCases {
// rule 1) you can't use generic or parameterized type patterns in the declaring type position
pointcut tryExecutionGeneric() : call(* Generic<T>.*(..)); // CE L 4
pointcut tryExecutionParameterized() : call(* Generic<String>.*(..)); // CE L5
pointcut badThrows() : call(* Generic.*(..) throws Ex*<String>); // CE L6
}
class Generic<T> {
T foo = null;
T getFoo() {
return foo;
}
}
|