-
Notifications
You must be signed in to change notification settings - Fork 44
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
Questions about why CDI TCK fails when Jakarta MVC / Eclipse Krazo are bundled in Glassfish 7 #400
Comments
This one looks like spec violation.
In this case, I think the TCK should be altered to only make assertions on the classes in the test. It doesn't count with possibility of having some extra alternatives around (maybe the issue is the same for other tests in the same class?). |
I will take a closer look at |
Thanks a lot for the quick response and information ! The possible spec violation will be fixed on Krazo side as soon as my PR is merged (tomorrow). Regarding the other test, I think it makes sense to exclude non-TCK classes from there too. But just for my personal understanding: Does the priority of a bean has an impact on those events, so e.g. a lower priority can fix this problem? |
@erdlet see https://jakarta.ee/specifications/cdi/4.0/jakarta-cdi-spec-4.0.html#after_type_discovery
(and other similar sentences) |
@erdlet 4.0.7 TCK should now be syncing with Central. |
@manovotn Thanks a lot! No problem, we had this Eclipse Jenkins network trouble a few days ago too. |
Hi all,
as the headline describes, I'd like to ask a few questions about specific CDI TCK tests which are failing when Jakarta MVC and Eclipse
Krazo are bundled in GF 7. I've done some analysis but I'm not sure if my conclusions are correct, so maybe someone here can help.
ProcessBeanAttributesNotFiredForBuiltinBean
This test fails, because Krazo creates a
@RequestScoped
instance ofHttpServletRequest
in the JaxRsContextProducer which is then observed by the TCK methodProcessBeanAttributesObserver#observeHttpServletRequestBeanAttributes
. In this case I'm not sure if the producer in Krazo is really necessary / compliant with the CDI spec, because the container already provides a@Default
scopedHttpServletRequest
.Removing the producer method fixes the test, but I'd like to understand if this was some spec violation or maybe a missing scope / exclusion in the CDI TCK?
AfterTypeDiscoveryTest
Here the methods
testFinalAlternatives
andtestInitialAlternatives
fail, because theAfterTypeDiscoveryObserver
used as test extension contains a bunch of Krazo beans (screenshot) which are added in our KrazoCdiExtension. Most of them have in common, that the priority is set to a really low value, sometimes even0
. In this case I'm not sure if the TCK needs to exclude classes which are not part of the test setup or if Krazo needs to prioritize its beans later.Would be great if someone can help me and answer those questions. Even a hint what can be wrong would be helpful. Thanks in advance!
The text was updated successfully, but these errors were encountered: