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

Quick fix for invalid Managed Bean scope @DEPENDENT does not resolve diagnostic #444

Closed
turkeylurkey opened this issue Apr 4, 2023 · 0 comments · Fixed by #506
Closed
Labels
bug Something isn't working diagnostic Diagnostic item

Comments

@turkeylurkey
Copy link
Contributor

The public field in this sample taken from jakarta-sample/src/main/java/io/openliberty/sample/jakarta/cdi/ManagedBean.java provides a quick fix to change @RequestScoped into @DEPENDENT but this does not resolve the diagnostic on the field itself.
image

We either need another quick fix to add an annotation to the field or fix the diagnostic not to flag the field when the class has annotation @DEPENDENT.

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

Successfully merging a pull request may close this issue.

1 participant