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