RE: Re: [LANG3] Issue with TypeUtils.isAssignableTo() using JDK ParameterizedType

2024-05-31 Thread Sunny Chan
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

Re: [LANG3] Issue with TypeUtils.isAssignableTo() using JDK ParameterizedType

2024-05-30 Thread Matt Benson
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

[LANG3] Issue with TypeUtils.isAssignableTo() using JDK ParameterizedType

2024-05-30 Thread Sunny Chan
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) {