[weld-issues] [JBoss JIRA] (WELD-1075) Ambiguous dependencies when only one correct dependency exists

Sebastian Graca (JIRA) jira-events at lists.jboss.org
Mon Mar 5 04:51:37 EST 2012


Sebastian Graca created WELD-1075:
-------------------------------------

             Summary: Ambiguous dependencies when only one correct dependency exists
                 Key: WELD-1075
                 URL: https://issues.jboss.org/browse/WELD-1075
             Project: Weld
          Issue Type: Bug
          Components: Resolution (Typesafe and by Name)
    Affects Versions: 1.1.4.Final, 1.1.1.Final
            Reporter: Sebastian Graca
         Attachments: testcase.zip

Running attached application gives the error:

WELD-001409 Ambiguous dependencies for type [Interface1<UUID, String>] with qualifiers [@Default] at injection point [[field] @Inject private test.Bean.dependency]. Possible dependencies [[Managed Bean [class test.ConcreteClass1] with qualifiers [@Any @Default], Managed Bean [class test.ConcreteClass2] with qualifiers [@Any @Default], Managed Bean [class test.ConcreteClass3] with qualifiers [@Any @Default]]]

But only ConcreteClass3 has required type of Interface1<UUID, String>

When ConcreteClass1 and ConcreteClass2 extens AbstractClass1 instead of AbstractClass2 everything works as expected.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list