diff options
Diffstat (limited to 'tests/bugs161')
-rw-r--r-- | tests/bugs161/pr235829/Main.java | 13 | ||||
-rw-r--r-- | tests/bugs161/pr235829/a/Adapter.java | 7 | ||||
-rw-r--r-- | tests/bugs161/pr235829/a/b/Adapter.java | 9 |
3 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs161/pr235829/Main.java b/tests/bugs161/pr235829/Main.java new file mode 100644 index 000000000..6072ec53d --- /dev/null +++ b/tests/bugs161/pr235829/Main.java @@ -0,0 +1,13 @@ +import java.lang.reflect.Type; + +public class Main { + + public static void main(String[]argv) throws Exception { + Class c = Class.forName("a.b.Adapter$1"); + Type[] ts = c.getGenericInterfaces(); + for (int i = 0; i < ts.length; i++) { + Type type = ts[i]; + System.out.println(ts[i]); + } + } +}
\ No newline at end of file diff --git a/tests/bugs161/pr235829/a/Adapter.java b/tests/bugs161/pr235829/a/Adapter.java new file mode 100644 index 000000000..53dd91eb1 --- /dev/null +++ b/tests/bugs161/pr235829/a/Adapter.java @@ -0,0 +1,7 @@ +package a; + +public interface Adapter<T> { + interface Setter<V> {} + + public <V> Setter<V> makeSetter(); +} diff --git a/tests/bugs161/pr235829/a/b/Adapter.java b/tests/bugs161/pr235829/a/b/Adapter.java new file mode 100644 index 000000000..69d0d79c8 --- /dev/null +++ b/tests/bugs161/pr235829/a/b/Adapter.java @@ -0,0 +1,9 @@ +package a.b; + +public class Adapter<T> implements a.Adapter<T> { + + public <V> Adapter.Setter<V> makeSetter() { + return new Adapter.Setter<V>() {}; + } + +} |