aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs170/pr363979/Example.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs170/pr363979/Example.java')
-rw-r--r--tests/bugs170/pr363979/Example.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs170/pr363979/Example.java b/tests/bugs170/pr363979/Example.java
new file mode 100644
index 000000000..0e5190000
--- /dev/null
+++ b/tests/bugs170/pr363979/Example.java
@@ -0,0 +1,29 @@
+import java.lang.annotation.*;
+
+aspect X {
+declare parents:
+ @SomeAnnotation(a = @Foo) * implements java.io.Serializable;
+}
+
+ @SomeAnnotation(a = @Foo)
+ public class Example {
+
+public static void main(String []argv) {
+ Example e = new Example();
+if (e instanceof java.io.Serializable) {
+System.out.println("yes");
+} else {
+System.out.println("no");
+}
+}
+
+}
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Foo {}
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface SomeAnnotation {
+ Foo a();
+}
+