blob: d692c2382c1ca126048d6f75d7b914b4448bef23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/** Currently there are no messages emitted for
* compile-time errors from advice bodies if the
* advice is not woven into the base class.
* This can lead to silent failures.
*/
class UnwovenAdviceNotCheckedCE {
public static void main(String[] args) {
System.err.println("main");
}
}
aspect Aspect {
void around (String[] args)
: args(args)
&& call(void UnwovenAdviceNotCheckedCE.main()) { // forgot (..), so unwoven
System.err.println("before main");
proceed() ; // CE: should get compile error here - need (args)
System.err.println("after main");
}
}
|