mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
8 lines
327 B
Java
8 lines
327 B
Java
|
// 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
|
||
|
}
|