| Summary: | Beans from a non-CDI module are loaded when adding the module as a dependency to a Weld deployment | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Pedro Igor <psilva> |
| Component: | CDI/Weld | Assignee: | baranowb <bbaranow> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Marek Schmidt <maschmid> |
| Severity: | medium | Docs Contact: | Russell Dickenson <rdickens> |
| Priority: | unspecified | ||
| Version: | 6.1.0, 6.2.0, 6.1.1 | CC: | bbaranow, pmuir, psilva, rsmeral |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-07-30 17:45:50 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Pedro Igor
2013-11-07 15:11:28 UTC
Currently, the behaviour seems to be consistent (and IMHO correct) on both, EAP 6.3.0.ER10 and WildFly 8.1.0.Final. I've tested the scenario in an independent test (not the PicketLink one) and it seems to work as would be expected: - there's a WAR deployment with: - a test bean with an injection point for X - a producer for X - beans.xml - MANIFEST.MF declaring a dependency on the static module - there's a non-CDI static module in the server with: - the class X - (NO beans.xml here) Expectations: - the producer should be able to find the class X, due to the declared class-loading dependency in MANIFEST.MF - the class X is produced and becomes a bean (is injectable into beans in the deployment), because the producer is in a bean archive and sees class X The test confirms these expectations in current WF and EAP. IIUC, these expectations are in contradiction with the expectations mentioned in the first comment. (The situation is obviously different, when also the producer is in the non-CDI static module. It then should not and does not produce a bean X.) Is this still an issue? It is fine now. got the same results with latest versions. Thanks, I'll close this then. |