Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-606

org.jboss.cdi.tck.tests.deployment.discovery.enterprise.annotated.EnterpriseDefaultBeanDiscoveryModeTest should fail because of ambiguous beans

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 2.0.3.Final
    • Tests
    • None

    Description

      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.

      Attachments

        Activity

          People

            manovotn Matěj Novotný
            struberg Mark Struberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty