summaryrefslogtreecommitdiffstats
path: root/tests/bugs162/pr211146/GenericsLost.java
blob: 63631af57a78adbd360095011a2b908ffed08575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.util.*;
import java.lang.reflect.*;

aspect Foo {

   public List<String> Goo.getStrings() {
     return null;
   }
   
}

class Goo {
}
	
public class GenericsLost {

	   public static void main(String[]argv) throws Exception {
		   Method m = Goo.class.getDeclaredMethod("getStrings");
		   Type t = m.getGenericReturnType();
		   if (!t.toString().equals("java.util.List<java.lang.String>")) 
			   throw new RuntimeException("Incorrect signature. Signature is "+t);
	   }
}