aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs154/pr169706
diff options
context:
space:
mode:
authoraclement <aclement>2007-10-18 11:02:00 +0000
committeraclement <aclement>2007-10-18 11:02:00 +0000
commit499b8bcb0e89b39a63008fc68b44df9ed39d0750 (patch)
tree748080f3a5b8f4915cc5b1014bbac41ce4d8236f /tests/bugs154/pr169706
parent7d21be99acce64728f70e3f4b26bc5390a658672 (diff)
downloadaspectj-499b8bcb0e89b39a63008fc68b44df9ed39d0750.tar.gz
aspectj-499b8bcb0e89b39a63008fc68b44df9ed39d0750.zip
these tests are now for 1.5.4, not 1.6.0
Diffstat (limited to 'tests/bugs154/pr169706')
-rw-r--r--tests/bugs154/pr169706/A.java8
-rw-r--r--tests/bugs154/pr169706/B.java3
-rw-r--r--tests/bugs154/pr169706/C.java3
-rw-r--r--tests/bugs154/pr169706/MyAnnotation.java3
-rw-r--r--tests/bugs154/pr169706/MyAspect.java16
-rw-r--r--tests/bugs154/pr169706/Test.java8
6 files changed, 41 insertions, 0 deletions
diff --git a/tests/bugs154/pr169706/A.java b/tests/bugs154/pr169706/A.java
new file mode 100644
index 000000000..a40ef7bcf
--- /dev/null
+++ b/tests/bugs154/pr169706/A.java
@@ -0,0 +1,8 @@
+public class A {
+
+ @MyAnnotation
+ public void foo() {
+
+ }
+
+}
diff --git a/tests/bugs154/pr169706/B.java b/tests/bugs154/pr169706/B.java
new file mode 100644
index 000000000..120fb1868
--- /dev/null
+++ b/tests/bugs154/pr169706/B.java
@@ -0,0 +1,3 @@
+public class B extends A {
+
+}
diff --git a/tests/bugs154/pr169706/C.java b/tests/bugs154/pr169706/C.java
new file mode 100644
index 000000000..8acb6675c
--- /dev/null
+++ b/tests/bugs154/pr169706/C.java
@@ -0,0 +1,3 @@
+public class C extends B {
+
+}
diff --git a/tests/bugs154/pr169706/MyAnnotation.java b/tests/bugs154/pr169706/MyAnnotation.java
new file mode 100644
index 000000000..723084377
--- /dev/null
+++ b/tests/bugs154/pr169706/MyAnnotation.java
@@ -0,0 +1,3 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME) @interface MyAnnotation {}
diff --git a/tests/bugs154/pr169706/MyAspect.java b/tests/bugs154/pr169706/MyAspect.java
new file mode 100644
index 000000000..e533064db
--- /dev/null
+++ b/tests/bugs154/pr169706/MyAspect.java
@@ -0,0 +1,16 @@
+public aspect MyAspect {
+
+ // this throws an exception
+ before(MyAnnotation myAnnotation) :
+ //call(* *..*.*(..)) &&
+ call(@MyAnnotation * *(..)) &&
+ @annotation(myAnnotation) {
+
+ }
+
+ // this, however, works fine
+// before() :
+ // call(@MyAnnotation * *(..)) {
+ //
+ // }
+}
diff --git a/tests/bugs154/pr169706/Test.java b/tests/bugs154/pr169706/Test.java
new file mode 100644
index 000000000..b8af6a677
--- /dev/null
+++ b/tests/bugs154/pr169706/Test.java
@@ -0,0 +1,8 @@
+public class Test {
+
+ public static void main(String args[]) {
+ C c = new C();
+ c.foo();
+ }
+
+}