aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs199/github_115/B.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs199/github_115/B.java')
-rw-r--r--tests/bugs199/github_115/B.java33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/bugs199/github_115/B.java b/tests/bugs199/github_115/B.java
new file mode 100644
index 000000000..eba199b67
--- /dev/null
+++ b/tests/bugs199/github_115/B.java
@@ -0,0 +1,33 @@
+import org.aspectj.lang.annotation.Aspect;
+import org.aspectj.lang.annotation.Before;
+import org.aspectj.lang.annotation.Pointcut;
+
+public class B {
+
+ public static void main(String []argv) {
+ System.out.println("B.main");
+ }
+
+}
+
+@Aspect
+abstract class AbstractAzpect {
+
+ @Pointcut
+ public abstract void isTrue();
+
+ @Before("isTrue() && execution(* B.main(..))")
+ public void beforeFalse() {
+ System.out.println("Azpect.beforeFalse");
+ }
+}
+
+@Aspect
+class Azpect extends AbstractAzpect {
+
+ @Override
+ @Pointcut("if(true)")
+ public void isTrue() { }
+
+}
+