Skip to content

Conversation

@the-mgi
Copy link
Contributor

@the-mgi the-mgi commented Nov 20, 2023

fixes #3413

if expression and conditionQualifiedByName both exists on the same @mapping config, then it should lead to compile time error, and a new error message that says so.
@thunderhook thunderhook self-requested a review November 22, 2023 21:30
Copy link
Contributor

@thunderhook thunderhook left a comment

Choose a reason for hiding this comment

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

Hi @the-mgi!

Sorry it took so long to review. (now that I see it, 2 days isn't that long 😅 )

Would you be so kind and add a unit test? This would look similar to theIssue2668Test.

Thanks in advance!

@the-mgi
Copy link
Contributor Author

the-mgi commented Nov 23, 2023

pleasure.
fyi test case added, added proper whitespace

@the-mgi the-mgi changed the title Expression or condition [WIP] Expression or condition Nov 23, 2023
@the-mgi the-mgi changed the title [WIP] Expression or condition Expression or condition Nov 23, 2023
@the-mgi the-mgi requested a review from thunderhook November 23, 2023 10:41
@the-mgi
Copy link
Contributor Author

the-mgi commented Nov 23, 2023

FYI there is a failing test mapstruct/processor/src/test/java/org/mapstruct/ap/test/collection/iterabletoset/FruitsMapper.java on local on main branch, and on expression-or-condition.

@thunderhook thunderhook added this to the 1.6.0.Beta2 milestone Nov 23, 2023
@thunderhook thunderhook merged commit 2bb2aef into mapstruct:main Nov 24, 2023
@the-mgi the-mgi deleted the expression-or-condition branch November 25, 2023 20:38
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.

Using Mapping#expression and Mapping#conditionalQualifiedBy(Name) should lead to compile error

2 participants