From 8c084b533078c9d640aa9d1530e673d744d546ad Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 24 Apr 2006 14:58:47 +0000 Subject: [PATCH] work in progress testcase 137568 --- tests/bugs152/pr137568/C.java | 38 ++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/tests/bugs152/pr137568/C.java b/tests/bugs152/pr137568/C.java index 41341522a..fd7d64610 100644 --- a/tests/bugs152/pr137568/C.java +++ b/tests/bugs152/pr137568/C.java @@ -1,19 +1,29 @@ -interface IGuard

{} +//interface IGuard

{} +// +////interface Guard

extends IGuard

{} +// +//class GuardImpl implements IGuard {} +// +//public class C { +// +// private boolean m1(Class> guardClz) throws Exception { return false;} +// private boolean m2(Class>[] guardClz) throws Exception { return false;} +// +// public static void main(String []argv) throws Exception { +// GuardImpl g = new GuardImpl(); +// C newC = new C(); +// newC.m1(g.getClass()); +//// newC.m2(new Class[]{g.getClass()}); +// } +// +//} +interface IGuard

{} interface Guard

extends IGuard

{} - -class GuardImpl implements Guard {} - public class C { - - private boolean m1(Class> guardClz) throws Exception { return false;} - private boolean m2(Class>[] guardClz) throws Exception { return false;} - - public static void main(String []argv) throws Exception { - GuardImpl g = new GuardImpl(); - C newC = new C(); - newC.m1(g.getClass()); - newC.m2(new Class[]{g.getClass()}); + 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); } - } \ No newline at end of file -- 2.39.5