From 8825b5c86b769c3bf67457967dab4c6e3d59b74f Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 22 May 2006 14:26:11 +0000 Subject: fix for 137568: dreaded generics signature --- tests/bugs152/pr137568/C.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'tests/bugs152') 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

{} + interface Guard

extends IGuard

{} + +class GuardImpl implements Guard {} + public class C { + private boolean checkGuards(Class>[] guardClz) throws Exception { return false;} - public static void main(String []argv) { - Guard g = new Guard(); - new C().checkGuards(g.getClass());//Guard.class); + + public static void main(String []argv) throws Exception { + GuardImpl g = new GuardImpl(); + //new C().checkGuards(g.getClass());//Guard.class); + new C().checkGuards(new Class[]{g.getClass()});//Guard.class); } -} \ No newline at end of file +} -- cgit v1.2.3