Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution:
Out of Date
-
Affects Version/s: 1.0.1.CR1
-
Fix Version/s: None
-
Component/s: Bootstrap and Metamodel API
-
Labels:None
Description
Adding a bean that is exactly the same as an existing bean results in the added bean being ignored.
I can't think of a use case for having two beans exactly the same, however it still should work, and may be a symptom of a larger problem.
Gliffy Diagrams
Activity
- All
- Comments
- Work Log
- History
- Activity
- Links Hierarchy
This is addressed by CDI 1.1 where addAnnotatedType now takes a String identifier for container to be able to distinguish two otherwise equal AnnotatedTypes
http://docs.jboss.org/cdi/api/1.1/javax/enterprise/inject/spi/BeforeBeanDiscovery.html#addAnnotatedType(javax.enterprise.inject.spi.AnnotatedType, java.lang.String)