Skip to content

Conversation

@chenzijia12300
Copy link
Contributor

@chenzijia12300 chenzijia12300 commented Aug 25, 2022

Fixes #2983
Enables @AnnotateWith to support NormalTypeMappingMethod and ValueMappingMethod

@chenzijia12300
Copy link
Contributor Author

I don't really understand why the unit test failed, I shouldn't have affected Issue2897Test.shouldImportNestedClassInMapperImports to run
(⊙﹏⊙)

@Zegveld
Copy link
Contributor

Zegveld commented Aug 26, 2022

I don't really understand why the unit test failed, I shouldn't have affected Issue2897Test.shouldImportNestedClassInMapperImports to run (⊙﹏⊙)

Looking into this issue. Might be that something in the main branch is broken on that part. Seems to be related to how mapstruct handles automated imports and user defined imports.

Edit: created issue #2990 for this, fix already existed under #2984

@filiphr
Copy link
Member

filiphr commented Aug 26, 2022

It was my fault. Everything should be fixed now on main. I restarted the jobs

Copy link
Member

@filiphr filiphr left a comment

Choose a reason for hiding this comment

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

The implementation looks good @chenzijia12300. I've left some comments for some small fixes there.

In addition to that, I've left some comments for the tests. Can we please move them a bit like I proposed?

@filiphr
Copy link
Member

filiphr commented Aug 27, 2022

Regarding the failing tests. I tried running the builds, but it seems like it doesn't really do a proper merge commit or something like that. Can you please rebase on top of main and push to your branch so that you get the latest changes?

@chenzijia12300
Copy link
Contributor Author

Thank you very much for your review @filiphr , I will try to implement your proposal at a later time

@chenzijia12300
Copy link
Contributor Author

I don't really understand why the unit test failed, I shouldn't have affected Issue2897Test.shouldImportNestedClassInMapperImports to run (⊙﹏⊙)

Looking into this issue. Might be that something in the main branch is broken on that part. Seems to be related to how mapstruct handles automated imports and user defined imports.

Edit: created issue #2990 for this, fix already existed under #2984

Thank you very much for your reply 😊 @Zegveld

Copy link
Member

@filiphr filiphr left a comment

Choose a reason for hiding this comment

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

Thanks a lot for your changes @chenzijia12300.

I've left some final comments that we should address before we merge this

@chenzijia12300
Copy link
Contributor Author

Thanks a lot for your changes @chenzijia12300.

I've left some final comments that we should address before we merge this

I apologize for my carelessness and thank you for your comment, I have revised it

@filiphr filiphr merged commit ac356ca into mapstruct:main Aug 28, 2022
@filiphr
Copy link
Member

filiphr commented Aug 28, 2022

I apologize for my carelessness and thank you for your comment, I have revised it

Thanks a lot for your revisions. Everything is looking great now. I've merged this to main now. And no need to apologise, that's why we have PRs, so we can share knowledge and ideas.

@filiphr filiphr mentioned this pull request Aug 28, 2022
@chenzijia12300
Copy link
Contributor Author

Thank you

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.

Add @AnnotateWith support to other non bean mapping methods

3 participants