]> source.dussan.org Git - aspectj.git/commitdiff
work in progress testcase 137568
authoraclement <aclement>
Mon, 24 Apr 2006 14:58:47 +0000 (14:58 +0000)
committeraclement <aclement>
Mon, 24 Apr 2006 14:58:47 +0000 (14:58 +0000)
tests/bugs152/pr137568/C.java

index 41341522a5dbdc657e8ac77dec7dc785ca25af5b..fd7d6461035da47613cb4f52ec634f89548f022e 100644 (file)
@@ -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