diff options
author | aclement <aclement> | 2006-05-22 14:26:11 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-05-22 14:26:11 +0000 |
commit | 8825b5c86b769c3bf67457967dab4c6e3d59b74f (patch) | |
tree | a15688fe333d8df1b0bc583c90f38bceccb8569c /tests/bugs152 | |
parent | 4dea3ad2411d5ea80b6f49ed342e96e52a39a91a (diff) | |
download | aspectj-8825b5c86b769c3bf67457967dab4c6e3d59b74f.tar.gz aspectj-8825b5c86b769c3bf67457967dab4c6e3d59b74f.zip |
fix for 137568: dreaded generics signature
Diffstat (limited to 'tests/bugs152')
-rw-r--r-- | tests/bugs152/pr137568/C.java | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/bugs152/pr137568/C.java b/tests/bugs152/pr137568/C.java index fd7d64610..31fefae9a 100644 --- a/tests/bugs152/pr137568/C.java +++ b/tests/bugs152/pr137568/C.java @@ -19,11 +19,18 @@ //} interface IGuard<P> {} + interface Guard<P> extends IGuard<P> {} + +class GuardImpl<X> implements Guard<X> {} + public class C<T> { + private boolean checkGuards(Class<? extends IGuard<T>>[] guardClz) throws Exception { return false;} - public static void main(String []argv) { - Guard<String> g = new Guard<String>(); - new C<String>().checkGuards(g.getClass());//Guard.class); + + public static void main(String []argv) throws Exception { + GuardImpl<String> g = new GuardImpl<String>(); + //new C<String>().checkGuards(g.getClass());//Guard.class); + new C<String>().checkGuards(new Class[]{g.getClass()});//Guard.class); } -}
\ No newline at end of file +} |