diff options
author | aclement <aclement> | 2006-09-25 13:51:40 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-09-25 13:51:40 +0000 |
commit | e56a69a32149724c51daf0b52958607e5cc46eb4 (patch) | |
tree | b83682664bfcfdb66f8f5853331a0d93de3bdb06 /tests/bugs153 | |
parent | f3f24b02f5b1e75d8fc7e590b6a64c8be707d4eb (diff) | |
download | aspectj-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.java | 4 | ||||
-rw-r--r-- | tests/bugs153/pr158412/layering/Layering.aj | 8 | ||||
-rw-r--r-- | tests/bugs153/pr158412/layering/SystemArchitektur.java | 14 |
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() {} + +} + + |