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

Ales Justin (JIRA) jira-events at lists.jboss.org
Tue Mar 6 10:54:37 EST 2012


    [ https://issues.jboss.org/browse/WELD-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674034#comment-12674034 ] 

Ales Justin commented on WELD-1075:
-----------------------------------

* https://github.com/alesj/core/tree/weld-1075

Yup, it fails.
Let me have a closer look.

                
> 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.1.Final, 1.1.4.Final
>            Reporter: Sebastian Graca
>            Assignee: Ales Justin
>         Attachments: testcase-arquillian.zip, 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