aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/decps/Basic1b.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/decps/Basic1b.java')
-rw-r--r--tests/java5/decps/Basic1b.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/java5/decps/Basic1b.java b/tests/java5/decps/Basic1b.java
new file mode 100644
index 000000000..bdbadd9b7
--- /dev/null
+++ b/tests/java5/decps/Basic1b.java
@@ -0,0 +1,22 @@
+import org.aspectj.lang.annotation.*;
+
+public class Basic1b {
+ public static void main(String []argv) {
+ Basic1b b = new Basic1b();
+ if (!(b instanceof X.I)) throw new RuntimeException("Basic1b should implement I");
+ }
+}
+
+
+
+@Aspect
+class X {
+
+ interface I {
+ }
+
+ @DeclareParents("Basic1bb")
+ private I someField;
+
+}
+