diff options
Diffstat (limited to 'tests/bugs173/pr405016')
-rw-r--r-- | tests/bugs173/pr405016/Gimme.java | 6 | ||||
-rw-r--r-- | tests/bugs173/pr405016/Thingy.java | 13 | ||||
-rw-r--r-- | tests/bugs173/pr405016/one/Gimme.java | 6 | ||||
-rw-r--r-- | tests/bugs173/pr405016/one/Thingy.java | 13 |
4 files changed, 38 insertions, 0 deletions
diff --git a/tests/bugs173/pr405016/Gimme.java b/tests/bugs173/pr405016/Gimme.java new file mode 100644 index 000000000..3ee611a74 --- /dev/null +++ b/tests/bugs173/pr405016/Gimme.java @@ -0,0 +1,6 @@ +import java.lang.annotation.*; +@Retention(RetentionPolicy.RUNTIME) +public @interface Gimme { + Class<?>[] value(); +} + 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; +} diff --git a/tests/bugs173/pr405016/one/Gimme.java b/tests/bugs173/pr405016/one/Gimme.java new file mode 100644 index 000000000..ce86795ac --- /dev/null +++ b/tests/bugs173/pr405016/one/Gimme.java @@ -0,0 +1,6 @@ +import java.lang.annotation.*; +@Retention(RetentionPolicy.RUNTIME) +public @interface Gimme { + Class<?> value(); +} + diff --git a/tests/bugs173/pr405016/one/Thingy.java b/tests/bugs173/pr405016/one/Thingy.java new file mode 100644 index 000000000..13b97e4df --- /dev/null +++ b/tests/bugs173/pr405016/one/Thingy.java @@ -0,0 +1,13 @@ +import java.io.Serializable; + +@Gimme(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 = Serializable.class) *) implements Serializable; +} |