aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153
diff options
context:
space:
mode:
authoraclement <aclement>2006-09-25 13:51:40 +0000
committeraclement <aclement>2006-09-25 13:51:40 +0000
commite56a69a32149724c51daf0b52958607e5cc46eb4 (patch)
treeb83682664bfcfdb66f8f5853331a0d93de3bdb06 /tests/bugs153
parentf3f24b02f5b1e75d8fc7e590b6a64c8be707d4eb (diff)
downloadaspectj-e56a69a32149724c51daf0b52958607e5cc46eb4.tar.gz
aspectj-e56a69a32149724c51daf0b52958607e5cc46eb4.zip
test and fix for 158412: annotation style reference pointcuts don't work
Diffstat (limited to 'tests/bugs153')
-rw-r--r--tests/bugs153/pr158412/dao/Foo.java4
-rw-r--r--tests/bugs153/pr158412/layering/Layering.aj8
-rw-r--r--tests/bugs153/pr158412/layering/SystemArchitektur.java14
3 files changed, 26 insertions, 0 deletions
diff --git a/tests/bugs153/pr158412/dao/Foo.java b/tests/bugs153/pr158412/dao/Foo.java
new file mode 100644
index 000000000..376414c31
--- /dev/null
+++ b/tests/bugs153/pr158412/dao/Foo.java
@@ -0,0 +1,4 @@
+package dao;
+
+public class Foo {
+}
diff --git a/tests/bugs153/pr158412/layering/Layering.aj b/tests/bugs153/pr158412/layering/Layering.aj
new file mode 100644
index 000000000..c78561ee0
--- /dev/null
+++ b/tests/bugs153/pr158412/layering/Layering.aj
@@ -0,0 +1,8 @@
+package layering;
+
+//import architektur.SystemArchitektur;
+
+public aspect Layering {
+ declare warning : (layering.SystemArchitektur.inDAOLayer() ) : "Whatever";
+
+}
diff --git a/tests/bugs153/pr158412/layering/SystemArchitektur.java b/tests/bugs153/pr158412/layering/SystemArchitektur.java
new file mode 100644
index 000000000..735b0ced9
--- /dev/null
+++ b/tests/bugs153/pr158412/layering/SystemArchitektur.java
@@ -0,0 +1,14 @@
+package layering;
+
+import org.aspectj.lang.annotation.Aspect;
+import org.aspectj.lang.annotation.Pointcut;
+
+
+@Aspect
+public class SystemArchitektur {
+ @Pointcut("within(dao.*)")
+ public void inDAOLayer() {}
+
+}
+
+