diff options
author | aclement <aclement> | 2005-07-04 12:32:09 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-07-04 12:32:09 +0000 |
commit | c3b7d70b101defcc0b0284895ceb56bfca6a1548 (patch) | |
tree | 1c78390892d4a1844631a52b24548796da87f85a /tests | |
parent | 14f1ca3554408b363ac88c7fd708f32b7ed86f89 (diff) | |
download | aspectj-c3b7d70b101defcc0b0284895ceb56bfca6a1548.tar.gz aspectj-c3b7d70b101defcc0b0284895ceb56bfca6a1548.zip |
generics: trivial decp implements.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/java5/generics/decp/Basic.aj | 10 |
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>; } |