diff options
author | aclement <aclement> | 2008-03-03 17:23:18 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-03-03 17:23:18 +0000 |
commit | 182a728ab782b94f5c0f8efb1536fb4f5b913e9c (patch) | |
tree | 4ed7d0f04975e82f85769547d0702fa4104d3a3e /tests/bugs160 | |
parent | fca2a297a2c9bbb432280280e68c5619fda13fb6 (diff) | |
download | aspectj-182a728ab782b94f5c0f8efb1536fb4f5b913e9c.tar.gz aspectj-182a728ab782b94f5c0f8efb1536fb4f5b913e9c.zip |
annotation value matching in decp
Diffstat (limited to 'tests/bugs160')
-rw-r--r-- | tests/bugs160/various/A.java | 16 | ||||
-rw-r--r-- | tests/bugs160/various/Z.java | 16 |
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/bugs160/various/A.java b/tests/bugs160/various/A.java new file mode 100644 index 000000000..d09cdcf8e --- /dev/null +++ b/tests/bugs160/various/A.java @@ -0,0 +1,16 @@ +// HasMethod with anno value matching + +@interface I { + int i(); +} +aspect A { + declare parents: hasmethod(@I(i=5) * *(..)) implements java.io.Serializable; +} + +class B { +@I(i=5) public void m() {} +} +class C { +@I(i=6) public void m() {} +} + diff --git a/tests/bugs160/various/Z.java b/tests/bugs160/various/Z.java new file mode 100644 index 000000000..4fb0cb1f2 --- /dev/null +++ b/tests/bugs160/various/Z.java @@ -0,0 +1,16 @@ +// HasMethod with anno value matching + +@interface I { + boolean b(); +} +aspect A { + declare parents: hasmethod(@I(b=true) * *(..)) implements java.io.Serializable; +} + +class B { +@I(b=true) public void m() {} +} +class C { +@I(b=false) public void m() {} +} + |