org.aspectj/tests/new/RecognizeAspectCE.java

8 lines
327 B
Java
Raw Normal View History

2002-12-16 19:51:06 +01:00
// PR#457
class RecognizeAspectCE {
public static void main(String[] ignore) { }
pointcut mumble() // would like error here: "pointcuts not allowed in classes - use aspect"
: execution(public static void RecognizeAspectCE.main(String[]));
before(): mumble() { } // ok: get error here: constructor has the wrong name
}