summaryrefslogtreecommitdiffstats
path: root/tests/bugs162/pr211146/GenericsLost5.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs162/pr211146/GenericsLost5.java')
-rw-r--r--tests/bugs162/pr211146/GenericsLost5.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs162/pr211146/GenericsLost5.java b/tests/bugs162/pr211146/GenericsLost5.java
new file mode 100644
index 000000000..329bdd735
--- /dev/null
+++ b/tests/bugs162/pr211146/GenericsLost5.java
@@ -0,0 +1,19 @@
+import java.util.*;
+import java.lang.reflect.*;
+
+// generic field itd
+aspect Foo {
+ public List<String> Goo.ls;
+}
+
+class Goo {}
+
+public class GenericsLost5 {
+ public static void main(String[]argv) throws Exception {
+ Field f = Goo.class.getDeclaredField("ls");
+ Type t = f.getGenericType();
+ if (!t.toString().equals("java.util.List<java.lang.String>"))
+ throw new RuntimeException("Incorrect signature. Signature is "+t);
+ }
+}
+ \ No newline at end of file