-
Notifications
You must be signed in to change notification settings - Fork 38.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve type variable recursively in GenericTypeResolver
#30079
Conversation
quaff
commented
Mar 8, 2023
•
edited by sbrannen
Loading
edited by sbrannen
- Addresses GenericTypeResolver.resolveType() should resolve ParameterizedType recursively #24963
GenericTypeResolver
@jhoeller Could you review it? |
Rebased to main, ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @quaff - This looks promising as it fixes another issue that was reported against generics handling.
Unfortunately, the build is broken with those changes, see https://ge.spring.io/s/kktsevdqhmgqc/tests/overview?outcome=FAILED.
spring-core/src/main/java/org/springframework/core/GenericTypeResolver.java
Outdated
Show resolved
Hide resolved
The failed tests should adapt changes on ResolvableType.java, I've updated the commit. |
With those changes in place, you had to change some assertions that looks invalid to me now. For instance, event listening that accepts a This may be something that wrong elsewhere that the fix reveals but changing the assertion isn't what I had in mind. Given the impact this has so late, I've moved this one for 6.2. If you have time to review the above, that would be much appreciated. |
I've fixed that, please review. @snicoll |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@quaff with #31690 (comment) some code that we didn't intend to have has been reverted. If you have time to rebase, it would be much appreciated. |
Done. |