-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
2.0.3.Final
-
None
org.jboss.cdi.tck.tests.deployment.discovery.enterprise.annotated.EnterpriseDefaultBeanDiscoveryModeTest contains a class AppleTrea which has 2 producer for the same class+qualifier plus only one disposal method.
@Produces static Apple apple = new Apple(); @Produces public Apple produceApple(){ return new Apple(); } public void eatApple(@Disposes Apple apple){
So we have one injection point (Apple) but 2 Bean<Apple>. This is a very boguous situation and should lead to a DeploymentError.