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

Ignore synthetic fields on extracting declared fields in ClassLevelFieldMappingGenerator #819

Merged
merged 1 commit into from
Apr 17, 2021

Conversation

johannschenkl
Copy link
Contributor

@johannschenkl johannschenkl commented Apr 14, 2021

Issue link

[ISSUE: #763] ClassLevelFieldMappingGenerator should ignore synthetic fields

Purpose

Currently ClassLevelFieldMappingGenerator extracts all fields by reflection. This also includes synthetic fields. This causes problems if source code is instrumented e.g. by JaCoCo. For JaCoCo this can lead to out of memory situations.

Approach

As described here in the JaCoCo Faq, the PR ignores synthetic fields in ClassLevelFieldMappingGenerator.

Open Questions and Pre-Merge TODOs

  • Issue created
  • Unit tests pass
  • Documentation updated
  • Travis build passed

@garethahealy garethahealy merged commit ad27118 into DozerMapper:master Apr 17, 2021
@johannschenkl
Copy link
Contributor Author

@garethahealy thanks for merging! Would it be possible to build a release for that and push to maven central?

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 participants