TypeVariablesVariableResolver compares variables by full equality again
Issue: SPR-16456
This commit is contained in:
@@ -1468,7 +1468,9 @@ public class ResolvableType implements Serializable {
|
||||
@Nullable
|
||||
public ResolvableType resolveVariable(TypeVariable<?> variable) {
|
||||
for (int i = 0; i < this.variables.length; i++) {
|
||||
if (ObjectUtils.nullSafeEquals(this.variables[i].getName(), variable.getName())) {
|
||||
TypeVariable<?> v1 = SerializableTypeWrapper.unwrap(this.variables[i]);
|
||||
TypeVariable<?> v2 = SerializableTypeWrapper.unwrap(variable);
|
||||
if (ObjectUtils.nullSafeEquals(v1, v2)) {
|
||||
return this.generics[i];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user