Skip to content

Commit

Permalink
Fix JavacTypeBinding.getTypeBound for wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelistria committed Jul 25, 2024
1 parent 824ba47 commit 25f4eca
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,7 @@ public ITypeBinding[] getTypeBounds() {
}
return new ITypeBinding[] { this.resolver.bindings.getTypeBinding(bounds) };
} else if (this.type instanceof WildcardType wildcardType) {
Type upperBound = wildcardType.getUpperBound();
return new ITypeBinding[] { upperBound == null ?
return new ITypeBinding[] { wildcardType.isUnbound() || wildcardType.isSuperBound() ?
this.resolver.resolveWellKnownType(Object.class.getName()) :
this.resolver.bindings.getTypeBinding(wildcardType.bound) };
}
Expand Down

0 comments on commit 25f4eca

Please sign in to comment.