So the issue is this:
Type assignFrom = TypeUtils.parameterize(Container.class, Integer.class);
Type assignToUsingTypeUtils = TypeUtils.parameterize(Container.class,
String.class);
Type assignToUsingReflection =
constructors[0].getGenericParameterTypes().parameters[0];
TypeUtils.isAssignable(as
I am confused as to what could be wrong with determining that
Container is *not* assignable to Container. But are you
saying that the manually constructed parameterized Type *is* reported as
being assignable despite the obviously incompatible type parameters?
Matt
On Thu, May 30, 2024, 10:31 AM S
I have an issue with TypeUtils.isAssignableTo and I would like to check
whether this is expected or a bug.
Consider we have a number of classes
class Container {...}
class ParameterizedConstructor {
//consturctor that takes a container
public ParameterizedConstructor(Container input) {