diff options
Diffstat (limited to 'tests/bugs172/pr398246/Code6.java')
-rw-r--r-- | tests/bugs172/pr398246/Code6.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs172/pr398246/Code6.java b/tests/bugs172/pr398246/Code6.java new file mode 100644 index 000000000..e032eb7c9 --- /dev/null +++ b/tests/bugs172/pr398246/Code6.java @@ -0,0 +1,22 @@ +import java.lang.annotation.*; + +public class Code6 { + public static boolean isTrue = true; + public static boolean isTrue2 = true; + + public void m() { + } + + public static void main(String []argv) { + new Code6().m(); + } +} + +aspect X { + + pointcut p(): execution(* Code*.*(..)) && if(Code6.isTrue) && if(Code6.isTrue2); + + before(): p() { + System.out.println("advice"); + } +} |