blob: dbba0473a8bd7944cb2992f37e8ffae04d723926 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import org.aspectj.testing.Tester;
public class AspectInInterfaceCF {
public static void main(String[] args) {
Tester.checkEvents("before");
}
}
interface HasPrivateAspect {
/** @testcase PR#534 static aspect in interface causes CE if - usejavac */
private static aspect Inner {
before(): execution(* main(..)) { Tester.event("before"); }
}
protected static aspect Inner1 {
before(): execution(* main(..)) { Tester.event("before"); }
}
}
|