aboutsummaryrefslogtreecommitdiffstats
path: root/tests/migration/Aspect121.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/migration/Aspect121.java')
-rw-r--r--tests/migration/Aspect121.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/migration/Aspect121.java b/tests/migration/Aspect121.java
new file mode 100644
index 000000000..55f8a21b4
--- /dev/null
+++ b/tests/migration/Aspect121.java
@@ -0,0 +1,21 @@
+// Aspect should be built with AspectJ 1.2.1 into aspects121.jar
+// We are testing the new AspectJ can recognize old aspects
+
+public aspect Aspect121 {
+
+ pointcut anyMethodCall(): execution(* main(..));
+
+ pointcut setIntField(): set(int *);
+
+ pointcut complex(): call(* *(..)) && cflow(execution(* toplevel(..)));
+
+ pointcut moreComplex(): call(* *(..)) && !(call(* foo*(..)) || call(* bar*(..)));
+
+ before(): complex() { }
+
+ after(): complex() { }
+
+ void around(): anyMethodCall() {
+ proceed();
+ }
+}