什么是“无法从参数化类型中选择”错误?

时间:2019-11-06 03:24:55

标签: java generics compiler-errors

我有

public class Assembler extends ResourceAssemblerSupport<User, BeanResource<User> {

    public Assembler() {
        super(UserController.class, BeanResource<User>.class);
    }
}

super的第二个参数给我编译错误。无法从参数化类型中选择。为什么?

这是超类

public abstract class ResourceAssemblerSupport<T, D extends ResourceSupport> implements ResourceAssembler<T, D> {


public ResourceAssemblerSupport(Class<?> controllerClass, Class<D> resourceType) {}

0 个答案:

没有答案