Skip to content

refactor & fix: Merge ExecutableElementAccessor into ElementAccessor and add generic support uniformly#3872

Merged
filiphr merged 2 commits intomapstruct:mainfrom
tangyang9464:fix/3807
May 31, 2025
Merged

refactor & fix: Merge ExecutableElementAccessor into ElementAccessor and add generic support uniformly#3872
filiphr merged 2 commits intomapstruct:mainfrom
tangyang9464:fix/3807

Conversation

@tangyang9464
Copy link
Contributor

fix: #3807

Made some refactoring to Accessor:

  1. Merge ExecutableElementAccessor and ParameterElementAccessor into ElementAccessor (Deleted ExecutableElementAccessorParameterElementAccessor
  2. Deleted RecordElementAccessor (it is not used anywhere and the related functions are replaced by ReadAccessor)
  3. Add accessedType field to ElementAccessor to handle generics

…and add generic support uniformly

Signed-off-by: TangYang <tangyang9464@163.com>
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 @tangyang9464. I did a small polish and will merge it once the build passes

@filiphr filiphr merged commit bff8829 into mapstruct:main May 31, 2025
6 checks passed

public class Issue3807Test {
@WithClasses(Issue3807Mapper.class)
@IssueKey("3087")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just suddenly found that the issueskey was written wrongly as 3087

Copy link
Member

Choose a reason for hiding this comment

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

Sorry that's my mistake @tangyang9464. I was adding the IssueKey in my polishing and I made a typo. I've fixed this in f4d1818

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.

Public generic fields are not properly recognized

2 participants