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

3.x - MP Config - CDI TCK Synthetic Observers Fix #4382

Closed
wants to merge 2 commits into from
Closed

3.x - MP Config - CDI TCK Synthetic Observers Fix #4382

wants to merge 2 commits into from

Conversation

MattGill98
Copy link

@MattGill98 MattGill98 commented Jun 13, 2022

The CDI TCK will fail against any container with the ConfigCdiExtension registered as synthetic observers don't contain any annotated method, which causes a NPE during the 'ProcessObserverMethod'.

These synthetic events can be safely ignored, as it isn't a valid use of MP Config.

Note that this was discovered when using the MP Config implementation in GlassFish.

The CDI TCK will fail against any container with the ConfigCdiExtension
registered, as synthetic observers don't contain any annotated method.
This causes a NPE during the 'ProcessObserverMethod'.

The test simply registers an observer and makes sure it runs.

Signed-off-by: Matthew Gill <matthew.gill@live.co.uk>
This change is made to make the CDI synthetic observer test pass.
These events can be ignored, as it's not a valid use of MP Config.

Signed-off-by: Matthew Gill <matthew.gill@live.co.uk>
@tomas-langer tomas-langer requested a review from ljnelson June 13, 2022 16:02
@MattGill98 MattGill98 changed the title CDI TCK - Synthetic Observers Fix MP Config - CDI TCK Synthetic Observers Fix Jun 13, 2022
ljnelson
ljnelson previously approved these changes Jun 13, 2022
Copy link
Member

@ljnelson ljnelson left a comment

Choose a reason for hiding this comment

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

LGTM

@arjav-desai
Copy link
Member

@MattGill98 Can you please sign the OCA https://github.com/oracle/helidon/blob/master/CONTRIBUTING.md#code, as its required for "Contributing to Project Helidon"?

@barchetta barchetta changed the base branch from master to helidon-3.x August 8, 2022 21:58
@barchetta barchetta dismissed ljnelson’s stale review August 8, 2022 21:58

The base branch was changed.

@barchetta barchetta changed the title MP Config - CDI TCK Synthetic Observers Fix 3.x - MP Config - CDI TCK Synthetic Observers Fix Oct 19, 2022
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Oct 19, 2022
@oracle-contributor-agreement
Copy link

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

@MattGill98 MattGill98 closed this by deleting the head repository Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Required At least one contributor does not have an approved Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants