capture wildcard for getClass calls

This commit is contained in:
anna
2012-04-19 12:41:38 +02:00
parent 4027275217
commit f4cf77fb68
4 changed files with 13 additions and 3 deletions
@@ -0,0 +1,7 @@
import java.lang.reflect.*;
class Example {
private void demo() {
<error descr="Cannot resolve symbol 'TypeVariable'">TypeVariable</error><Class<? extends Example>>[] typeParameters = getClass().getTypeParameters();
}
}