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