We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bacb40 commit e7f7ddaCopy full SHA for e7f7dda
1 file changed
scijava-types/src/main/java/org/scijava/types/Types.java
@@ -1922,12 +1922,14 @@ else if (!isAssignable(fromResolved == null ? fromTypeArg
1922
// typeVarAssigns.
1923
// Effectively toResolved = fromResolved.
1924
if (toTypeArg == null && toResolved == null && typeVarAssigns != null) {
1925
+ // bind unbounded to a concrete type
1926
if (fromResolved != null) {
1927
TypeVariable<?> unbounded = (TypeVariable<?>) toTypeVarAssigns.get(
1928
var);
1929
typeVarAssigns.put(unbounded, fromResolved);
1930
toResolved = fromResolved;
1931
}
1932
+ // bind unbounded to another type variable
1933
else {
1934
typeVarAssigns.put((TypeVariable<?>) toTypeVarAssigns.get(var),
1935
fromTypeVarAssigns.get(var));
0 commit comments