Consistently detect wildcard without bounds as unresolvable

Closes gh-32327
See gh-20727
This commit is contained in:
Juergen Hoeller
2024-02-24 20:25:56 +01:00
parent 567547b63c
commit 260404b7f2
2 changed files with 18 additions and 2 deletions

View File

@@ -325,7 +325,7 @@ public class ResolvableType implements Serializable {
other.getComponentType(), true, matchedBefore, upUntilUnresolvable));
}
if (upUntilUnresolvable && other.isUnresolvableTypeVariable()) {
if (upUntilUnresolvable && (other.isUnresolvableTypeVariable() || other.isWildcardWithoutBounds())) {
return true;
}