aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2005-07-04 12:32:09 +0000
committeraclement <aclement>2005-07-04 12:32:09 +0000
commitc3b7d70b101defcc0b0284895ceb56bfca6a1548 (patch)
tree1c78390892d4a1844631a52b24548796da87f85a /tests
parent14f1ca3554408b363ac88c7fd708f32b7ed86f89 (diff)
downloadaspectj-c3b7d70b101defcc0b0284895ceb56bfca6a1548.tar.gz
aspectj-c3b7d70b101defcc0b0284895ceb56bfca6a1548.zip
generics: trivial decp implements.
Diffstat (limited to 'tests')
-rw-r--r--tests/java5/generics/decp/Basic.aj10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/java5/generics/decp/Basic.aj b/tests/java5/generics/decp/Basic.aj
index 3893e2f17..4dbb4cad8 100644
--- a/tests/java5/generics/decp/Basic.aj
+++ b/tests/java5/generics/decp/Basic.aj
@@ -1,13 +1,15 @@
-interface I<T>{ }
+interface I<T extends Number>{ }
+interface J<T extends Number>{ }
-public class Basic{
+public class Basic implements J<Double> {
public static void main(String[]argv) {
Basic b = new Basic();
- if (!(b instanceof I)) throw new RuntimeException("Should implement I??");
+ if (!(b instanceof J)) throw new RuntimeException("Should implement I??");
+ if (!(b instanceof I)) throw new RuntimeException("Should implement J??");
}
}
aspect X{
- declare parents: Basic implements I<String>;
+ declare parents: Basic implements I<Double>;
}