aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs169/pr307009
diff options
context:
space:
mode:
authoraclement <aclement>2010-04-29 19:49:27 +0000
committeraclement <aclement>2010-04-29 19:49:27 +0000
commit66625fd29e1c4e075415dde4740adeb44b811c40 (patch)
tree5e88279507111387afbf2ad88288d8f124815108 /tests/bugs169/pr307009
parent616df116630470ff93b2a6c5cfdae7cc6386f38a (diff)
downloadaspectj-66625fd29e1c4e075415dde4740adeb44b811c40.tar.gz
aspectj-66625fd29e1c4e075415dde4740adeb44b811c40.zip
307009: test and fix: declare soft and call joinpoint (matching on annotations)
Diffstat (limited to 'tests/bugs169/pr307009')
-rw-r--r--tests/bugs169/pr307009/Ann.java7
-rw-r--r--tests/bugs169/pr307009/Bug.aj6
-rw-r--r--tests/bugs169/pr307009/Test.java6
-rw-r--r--tests/bugs169/pr307009/Test2.java7
4 files changed, 26 insertions, 0 deletions
diff --git a/tests/bugs169/pr307009/Ann.java b/tests/bugs169/pr307009/Ann.java
new file mode 100644
index 000000000..c6d768960
--- /dev/null
+++ b/tests/bugs169/pr307009/Ann.java
@@ -0,0 +1,7 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.CLASS)
+public @interface Ann
+{
+}
+
diff --git a/tests/bugs169/pr307009/Bug.aj b/tests/bugs169/pr307009/Bug.aj
new file mode 100644
index 000000000..d7d94d083
--- /dev/null
+++ b/tests/bugs169/pr307009/Bug.aj
@@ -0,0 +1,6 @@
+public aspect Bug {
+ // works when specifying *.aj *.java, fails when using -sourceroots!
+ declare soft : Exception : call(@Ann * *(..));
+ // this works in both cases!
+ //declare soft : Exception : call(* m2(..));
+}
diff --git a/tests/bugs169/pr307009/Test.java b/tests/bugs169/pr307009/Test.java
new file mode 100644
index 000000000..c93ce5801
--- /dev/null
+++ b/tests/bugs169/pr307009/Test.java
@@ -0,0 +1,6 @@
+public class Test
+{
+ public void m() {
+ new Test2().m2();
+ }
+}
diff --git a/tests/bugs169/pr307009/Test2.java b/tests/bugs169/pr307009/Test2.java
new file mode 100644
index 000000000..335232709
--- /dev/null
+++ b/tests/bugs169/pr307009/Test2.java
@@ -0,0 +1,7 @@
+public class Test2
+{
+ @Ann
+ public void m2() throws Exception {
+ throw new Exception();
+ }
+}