]
Martin Kouba commented on WFLY-7353:
------------------------------------
For the record, the CDI spec states in [12.1. Bean
]:
bq. A bean archive which contains a beans.xml file with version 1.1 (or later) must
specify the bean-discovey-mode attribute.
Also the attribute is required in XSD.
CDI bean-discovery-mode does not default to "annotated"
-------------------------------------------------------
Key: WFLY-7353
URL:
https://issues.jboss.org/browse/WFLY-7353
Project: WildFly
Issue Type: Feature Request
Components: CDI / Weld
Affects Versions: 10.0.0.Final
Environment: EAP 7.0.2
Reporter: Teresa Miyar
Assignee: Martin Kouba
Labels: support
Attachments: demo-war-2.zip
bean-discovery-mode does not default to "annotated" when you have a beans.xml
version 1.1 without setting the discovery mode. That means that the bean without
annotation gets injected.
To reproduce:
Download attached war, run into EAP 7.0.2, point browser to demo-war/servlet, check logs
result:
I see the log from bean call
expected result:
either WFLYCTL0184: New missing/unsatisfied dependencies on startup, or null pointer
exception when accessing the servlet.