spring aop jdk1.5 Wrong number of type parameters supplied

Wrong number of type parameters supplied

经过对 aspectjwearver 1.5.0 源码分析

TypeVariable[] typeVariables = getDeclaringType().getTypeVariables();
        if (isParameterized && (typeVariables.length != typeParameters.length)) {
            throw new IllegalStateException("Wrong number of type parameters supplied");
        }

 

接口的泛型参数个数和实现类的 个数不一致 

 

你可能感兴趣的:(spring aop jdk1.5 Wrong number of type parameters supplied)