diff options
author | aclement <aclement> | 2011-07-18 16:51:31 +0000 |
---|---|---|
committer | aclement <aclement> | 2011-07-18 16:51:31 +0000 |
commit | 7ff02e4ff631243b0870f148deedf7d96ecf46be (patch) | |
tree | 1f4c1930d3d608f7bbfcdba3a202745f3780c6e9 /tests/bugs1612/pr352363 | |
parent | 222fb3431bcd39f98e192a21de77a9b9abedb875 (diff) | |
download | aspectj-7ff02e4ff631243b0870f148deedf7d96ecf46be.tar.gz aspectj-7ff02e4ff631243b0870f148deedf7d96ecf46be.zip |
352363
Diffstat (limited to 'tests/bugs1612/pr352363')
-rw-r--r-- | tests/bugs1612/pr352363/Code.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs1612/pr352363/Code.java b/tests/bugs1612/pr352363/Code.java new file mode 100644 index 000000000..2c2713390 --- /dev/null +++ b/tests/bugs1612/pr352363/Code.java @@ -0,0 +1,25 @@ +import java.lang.annotation.*; + +public class Code { + + @Anno + int i=0; + + @Anno(name="foobar") + int j=0; + + public void m() { + i = i+1; + j = j+1; + } +} + +@Retention(RetentionPolicy.RUNTIME) +@interface Anno { + String name() default ""; +} + +aspect X { + declare warning: get(@Anno(name="") * *) : "name is empty1"; + declare warning: get(@Anno(name="foobar") * *) : "name is empty2"; +} |