summaryrefslogtreecommitdiffstats
path: root/tests/bugs162/pr211146/GenericsLost5.java
blob: 329bdd7357abc4528eda83ea424251cb057bfa92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);
   }
}