aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr137568
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs152/pr137568')
-rw-r--r--tests/bugs152/pr137568/C.java38
1 files 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<P> {}
+//interface IGuard<P> {}
+//
+////interface Guard<P> extends IGuard<P> {}
+//
+//class GuardImpl<G> implements IGuard<G> {}
+//
+//public class C<T> {
+//
+// private boolean m1(Class<? extends IGuard<T>> guardClz) throws Exception { return false;}
+// private boolean m2(Class<? extends IGuard<T>>[] guardClz) throws Exception { return false;}
+//
+// public static void main(String []argv) throws Exception {
+// GuardImpl<String> g = new GuardImpl<String>();
+// C<String> newC = new C<String>();
+// newC.m1(g.getClass());
+//// newC.m2(new Class[]{g.getClass()});
+// }
+//
+//}
+interface IGuard<P> {}
interface Guard<P> extends IGuard<P> {}
-
-class GuardImpl implements Guard<String> {}
-
public class C<T> {
-
- private boolean m1(Class<? extends IGuard<T>> guardClz) throws Exception { return false;}
- private boolean m2(Class<? extends IGuard<T>>[] guardClz) throws Exception { return false;}
-
- public static void main(String []argv) throws Exception {
- GuardImpl g = new GuardImpl();
- C<String> newC = new C<String>();
- newC.m1(g.getClass());
- newC.m2(new Class[]{g.getClass()});
+ 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);
}
-
} \ No newline at end of file