Skip to content
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

1.46 ignores conditionQualifiedByName #476

Open
krizajb opened this issue Dec 4, 2024 · 0 comments
Open

1.46 ignores conditionQualifiedByName #476

krizajb opened this issue Dec 4, 2024 · 0 comments

Comments

@krizajb
Copy link

krizajb commented Dec 4, 2024

Conditional qualifier gets ignored in 1.46.

@Mapping(
      target = "accumulator",
      source = "selection",
      qualifiedByName = "getAccumulatorSelection",
      conditionQualifiedByName = "isAccumulatorSelection")

1.45:

 if ( isAccumulatorSelection( selection ) ) {
     selectionExt.setAccumulator( getAccumulatorSelection( selection ) );
 }

1.46:

  if ( selection != null ) {
      selectionExt.setAccumulator( getAccumulatorSelection( selection ) );
  }
@krizajb krizajb changed the title 1.46 generates different mappings 1.46 generates wrong mappings Dec 4, 2024
@krizajb krizajb changed the title 1.46 generates wrong mappings 1.46 ignores conditionQualifiedByName Dec 4, 2024
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

No branches or pull requests

1 participant