|
123456789101112131415161718192021222324 |
- import java.lang.annotation.*;
-
- public aspect AnnotationPlusPatternParseError {
-
- pointcut bar() : call(* (@MemberOfMonitoredSet *)+.*(..));
-
- declare warning : bar() : "humbug";
-
- }
-
- @interface MemberOfMonitoredSet {}
-
- @MemberOfMonitoredSet
- interface I {}
-
- class C implements I {
-
- void bar() {
- foo();
- }
-
- public void foo() {};
-
- }
|