diff options
Diffstat (limited to 'tests/bugs150/AnnotationPlusPatternParseError.aj')
-rw-r--r-- | tests/bugs150/AnnotationPlusPatternParseError.aj | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs150/AnnotationPlusPatternParseError.aj b/tests/bugs150/AnnotationPlusPatternParseError.aj new file mode 100644 index 000000000..0c22916ee --- /dev/null +++ b/tests/bugs150/AnnotationPlusPatternParseError.aj @@ -0,0 +1,24 @@ +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() {}; + +}
\ No newline at end of file |