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

Fix for issue #1070 #1074

Merged
merged 1 commit into from
Oct 3, 2019
Merged

Conversation

spericas
Copy link
Member

Problem is in ConfigCdiExtension, in the way it handles registration of producers for injection points. Whenever there is inheritance, the same field (in different classes) is discovered more than once and each discovery results in a new producer being created.

This PR uses a set instead of a list to collect injection point configuration to avoid adding duplicate producers for inherited fields. A new test has been added to verify the changes.

This is a WIP.

Signed-off-by: Santiago Pericas-Geertsen [email protected]

… injection point configuration to avoid adding duplicate producers for inherited fields.

Signed-off-by: Santiago Pericas-Geertsen <[email protected]>
Copy link
Member

@tjquinno tjquinno left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@tomas-langer tomas-langer left a comment

Choose a reason for hiding this comment

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

LGTM

@spericas spericas self-assigned this Oct 2, 2019
@spericas spericas changed the title WIP: Fix for issue #1070 Fix for issue #1070 Oct 2, 2019
@spericas spericas merged commit ef090ef into helidon-io:master Oct 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants