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

@State methods do not not have access to the CDI context #2

Open
holly-cummins opened this issue Oct 19, 2022 · 1 comment
Open

@State methods do not not have access to the CDI context #2

holly-cummins opened this issue Oct 19, 2022 · 1 comment
Labels
bug Something isn't working provider

Comments

@holly-cummins
Copy link
Contributor

This was discovered by @edeandrea.

This may need a Quarkus change - or be impossible to fix - but this issue can track the investigation. I assume this is a classloader issue, because in https://github.com/beforeeach methods we have access to the CDI context, but in https://github.com/State methods, we don't - even though it would be very useful in those methods.

pact-foundation/pact-jvm#1604 (comment) has sample code showing the issue.

@holly-cummins holly-cummins added the bug Something isn't working label Oct 19, 2022
@holly-cummins
Copy link
Contributor Author

See also quarkusio/quarkus#22611, which is a Quarkus work item for the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working provider
Projects
None yet
Development

No branches or pull requests

1 participant