diff options
author | acolyer <acolyer> | 2005-08-17 08:37:11 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-17 08:37:11 +0000 |
commit | d7bb145d6e9ea76fa2e9cc1648ab0869ca5e6c2c (patch) | |
tree | 933ff1f1abdbcc82f5681ce48f53749ab166e62e /tests/java5/generics/ajdk/SignatureWildcards.aj | |
parent | c75040720d62262539d37af46339d6e3a6a89c3f (diff) | |
download | aspectj-d7bb145d6e9ea76fa2e9cc1648ab0869ca5e6c2c.tar.gz aspectj-d7bb145d6e9ea76fa2e9cc1648ab0869ca5e6c2c.zip |
test cases for all examples in the new generics chapter of the ajdk
Diffstat (limited to 'tests/java5/generics/ajdk/SignatureWildcards.aj')
-rw-r--r-- | tests/java5/generics/ajdk/SignatureWildcards.aj | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/java5/generics/ajdk/SignatureWildcards.aj b/tests/java5/generics/ajdk/SignatureWildcards.aj new file mode 100644 index 000000000..7b93949f8 --- /dev/null +++ b/tests/java5/generics/ajdk/SignatureWildcards.aj @@ -0,0 +1,19 @@ +import java.util.List; + +public aspect SignatureWildcards { + + declare warning : execution(* C.*(List)) : "any list"; + declare warning : execution(* C.*(List<? extends Number>)) : "only foo"; + declare warning : execution(* C.*(List<?>)) : "some list"; + declare warning : execution(* C.*(List<? extends Object+>)) : "any list with upper bound"; +} + +class C { + + public void foo(List<? extends Number> listOfSomeNumberType) {} + + public void bar(List<?> listOfSomeType) {} + + public void goo(List<Double> listOfDoubles) {} + + }
\ No newline at end of file |