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