You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

GenericsLost5.java 449B

12345678910111213141516171819
  1. import java.util.*;
  2. import java.lang.reflect.*;
  3. // generic field itd
  4. aspect Foo {
  5. public List<String> Goo.ls;
  6. }
  7. class Goo {}
  8. public class GenericsLost5 {
  9. public static void main(String[]argv) throws Exception {
  10. Field f = Goo.class.getDeclaredField("ls");
  11. Type t = f.getGenericType();
  12. if (!t.toString().equals("java.util.List<java.lang.String>"))
  13. throw new RuntimeException("Incorrect signature. Signature is "+t);
  14. }
  15. }