You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "mymde (via GitHub)" <gi...@apache.org> on 2025/09/10 08:08:34 UTC
[PR] [LANG-1749] Fix TypeUtils.isAssignable for Class types with unbound t… [commons-lang]
mymde opened a new pull request, #1445:
URL: https://github.com/apache/commons-lang/pull/1445
The isAssignable method was incorrectly returning true when checking
assignability of Class<SomeType<T>> to Class<? extends SomeOtherType<?>>,
which should fail at compile time due to type variable constraints.
This change enhances the check for ParameterizedType when the target is Class
to properly handle all type arguments containing type variables.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [LANG-1749] Fix TypeUtils.isAssignable for Class types with unbound t… [commons-lang]
Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #1445:
URL: https://github.com/apache/commons-lang/pull/1445#issuecomment-3280170321
Tracking tickets:
- https://issues.apache.org/jira/browse/LANG-1749
- https://issues.apache.org/jira/browse/LANG-1700
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [LANG-1749] Fix TypeUtils.isAssignable for Class types with unbound t… [commons-lang]
Posted by "mymde (via GitHub)" <gi...@apache.org>.
mymde closed pull request #1445: [LANG-1749] Fix TypeUtils.isAssignable for Class types with unbound t…
URL: https://github.com/apache/commons-lang/pull/1445
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [LANG-1749] Fix TypeUtils.isAssignable for Class types with unbound t… [commons-lang]
Posted by "mymde (via GitHub)" <gi...@apache.org>.
mymde commented on PR #1445:
URL: https://github.com/apache/commons-lang/pull/1445#issuecomment-3283969553
Hello @garydgregory,
Thanks for raising this question—it's really helpful for clarifying the context!
After looking into the matter, I actually suspect that the isAssignable method might be behaving correctly for the scenarios described in LANG-1749. The issue could potentially lie in the test cases themselves, perhaps due to a misunderstanding of how generic types or the Class type specifically should be evaluated in terms of assignability.
I'll follow up with a comment in the JIRA ticket to share these thoughts and ask for further clarification, so we can dig deeper into whether the test cases align with the intended behavior of the method.
Thanks again for your insights!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@commons.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org