org.aspectj/tests/new/AspectInInterfaceCP.java

15 lines
373 B
Java
Raw Normal View History

2002-12-16 19:51:06 +01:00
import org.aspectj.testing.Tester;
public class AspectInInterfaceCP {
public static void main(String[] args) {
Tester.checkEvents("before");
}
}
interface HasPrivateAspect {
/** @testcase PR#534 static aspect in interface causes CE if - usejavac */
static aspect Inner {
before(): execution(* main(..)) { Tester.event("before"); }
}
}