diff options
Diffstat (limited to 'tests/bugs150/pr113447/PR113447b.java')
-rw-r--r-- | tests/bugs150/pr113447/PR113447b.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/bugs150/pr113447/PR113447b.java b/tests/bugs150/pr113447/PR113447b.java new file mode 100644 index 000000000..baa0abaa6 --- /dev/null +++ b/tests/bugs150/pr113447/PR113447b.java @@ -0,0 +1,27 @@ +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +@interface Annotation{}; + +@Annotation +public class PR113447b { + + public static void main(String[] args) { + PR113447b me = new PR113447b(); + me.method4(1); + } + + public void method4(int i){} + public void method5(int i){} +} + +aspect Super { + + pointcut p(Annotation a) : + @within(a) && (call(void method4(int)) + || call(void method5(int))); + + before(Annotation a) : p(a) {} + +} |