Skip to content

Conversation

@Zegveld
Copy link
Contributor

@Zegveld Zegveld commented Sep 3, 2022

Was doing a lot of generics stuff lately, so figured I'd also give this one a try.
Debugging I noticed that it did the second match check with the sourceType that had the unconverted generic T.
Figured I'd give it a shot at replacing this generic to get successful matching going.

closes #2663

@Zegveld Zegveld requested a review from sjaakd September 3, 2022 18:19
Copy link
Contributor

@sjaakd sjaakd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only one question remaining.. LGTM solution is far more simple than I thought. Nice work @Zegveld 👍

Ben Zegveld added 2 commits October 1, 2022 14:19
…o format javadoc for 'ResolvedPair resolveParameterToType(Type declared, Type parameterized)'.
@filiphr
Copy link
Member

filiphr commented Apr 15, 2023

I haven't reviewed the PR fully yet. However, I tried it for the example in #3163 and it isn't working as expected. We should investigate whether this should also fix that.

@Zegveld
Copy link
Contributor Author

Zegveld commented Apr 15, 2023

I haven't reviewed the PR fully yet. However, I tried it for the example in #3163 and it isn't working as expected. We should investigate whether this should also fix that.

I'll take a look at it.

@Zegveld
Copy link
Contributor Author

Zegveld commented Apr 15, 2023

It seems to be a different problem. I've added the fix here, but perhaps it should be a separate PR.

@filiphr
Copy link
Member

filiphr commented Apr 22, 2023

It seems to be a different problem. I've added the fix here, but perhaps it should be a separate PR.

I see. Indeed it does make sense to put the fix in a separate PR. I initially thought that it is the same root cause (I didn't really try it out)

@filiphr
Copy link
Member

filiphr commented Aug 1, 2023

@Zegveld I did some small polishing here and I removed the fixes for #3163. The fixes for #3163 are now in #3349.

If you are OK with the polishing then we can go ahead and merge it

@Zegveld Zegveld merged commit 7212881 into mapstruct:main Aug 4, 2023
@Zegveld Zegveld deleted the feature/2663 branch August 4, 2023 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2-step mapping with generics does not work correctly.

3 participants