summaryrefslogtreecommitdiffstats
path: root/tests/bugs152
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-22 14:26:11 +0000
committeraclement <aclement>2006-05-22 14:26:11 +0000
commit8825b5c86b769c3bf67457967dab4c6e3d59b74f (patch)
treea15688fe333d8df1b0bc583c90f38bceccb8569c /tests/bugs152
parent4dea3ad2411d5ea80b6f49ed342e96e52a39a91a (diff)
downloadaspectj-8825b5c86b769c3bf67457967dab4c6e3d59b74f.tar.gz
aspectj-8825b5c86b769c3bf67457967dab4c6e3d59b74f.zip
fix for 137568: dreaded generics signature
Diffstat (limited to 'tests/bugs152')
-rw-r--r--tests/bugs152/pr137568/C.java15
1 files changed, 11 insertions, 4 deletions
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<P> {}
+
interface Guard<P> extends IGuard<P> {}
+
+class GuardImpl<X> implements Guard<X> {}
+
public class C<T> {
+
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);
+
+ public static void main(String []argv) throws Exception {
+ GuardImpl<String> g = new GuardImpl<String>();
+ //new C<String>().checkGuards(g.getClass());//Guard.class);
+ new C<String>().checkGuards(new Class[]{g.getClass()});//Guard.class);
}
-} \ No newline at end of file
+}