| 1 |
package inference.guava; |
| 2 |
|
| 3 |
import java.lang.reflect.GenericDeclaration; |
| 4 |
import java.lang.reflect.Type; |
| 5 |
import java.lang.reflect.TypeVariable; |
| 6 |
|
| 7 |
@SuppressWarnings("") // Just check for crashes. |
| 8 |
public class Bug4 { |
| 9 |
Type resolveInternal(TypeVariable<?> var, Type[] types) { |
| 10 |
return method(var.getGenericDeclaration(), var.getName(), types); |
| 11 |
} |
| 12 |
|
| 13 |
static <D extends GenericDeclaration> TypeVariable<D> method(D d, String n, Type... bounds) { |
| 14 |
throw new RuntimeException(); |
| 15 |
} |
| 16 |
} |