diff options
author | Andy Clement <andrew.clement@gmail.com> | 2013-04-25 13:45:39 -0700 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2013-04-25 13:45:39 -0700 |
commit | 6afb281ef0a0f0afcfcf0c77d6b6ebcead15c363 (patch) | |
tree | 6cb45d6a764b362497e21ae885e9c3109112b4e0 /tests/bugs173/pr405016/Thingy.java | |
parent | 4855f74db6aa5b9ebf4c0e19bb36614929ab3175 (diff) | |
download | aspectj-6afb281ef0a0f0afcfcf0c77d6b6ebcead15c363.tar.gz aspectj-6afb281ef0a0f0afcfcf0c77d6b6ebcead15c363.zip |
405016: class literals in annotation matching
Diffstat (limited to 'tests/bugs173/pr405016/Thingy.java')
-rw-r--r-- | tests/bugs173/pr405016/Thingy.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/bugs173/pr405016/Thingy.java b/tests/bugs173/pr405016/Thingy.java new file mode 100644 index 000000000..6d6ca0bc3 --- /dev/null +++ b/tests/bugs173/pr405016/Thingy.java @@ -0,0 +1,13 @@ +import java.io.Serializable; + +@Gimme({Cloneable.class,java.io.Serializable.class}) +public class Thingy { + public static void main(String[] argv) { + System.out.println("I am serializable? "+(new Thingy() instanceof Serializable)); + } +} + +aspect X { + //declare parents: Thingy implements Serializable; + declare parents: (@Gimme(value = {Cloneable.class, Serializable.class}) *) implements Serializable; +} |