diff options
author | aclement <aclement> | 2006-04-24 14:58:47 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-04-24 14:58:47 +0000 |
commit | 8c084b533078c9d640aa9d1530e673d744d546ad (patch) | |
tree | 2e13db9e69459153c34dbf76bfad5d13816df210 /tests/bugs152 | |
parent | f6aaed5b40f403abc8640513d66beadc6b2e31a9 (diff) | |
download | aspectj-8c084b533078c9d640aa9d1530e673d744d546ad.tar.gz aspectj-8c084b533078c9d640aa9d1530e673d744d546ad.zip |
work in progress testcase 137568
Diffstat (limited to 'tests/bugs152')
-rw-r--r-- | tests/bugs152/pr137568/C.java | 38 |
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 |