diff options
Diffstat (limited to 'tests/bugs152/pr137568/C.java')
-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 +} |