[ 
https://issues.apache.org/jira/browse/CAY-2326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrus Adamchik closed CAY-2326.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 4.0.M6

> DI: can't override List/Map elements from another Module
> --------------------------------------------------------
>
>                 Key: CAY-2326
>                 URL: https://issues.apache.org/jira/browse/CAY-2326
>             Project: Cayenne
>          Issue Type: Bug
>    Affects Versions: 4.0.M5
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>             Fix For: 4.0.M6
>
>
> The following fails to load SubX instance into collection.
> {noformat}
> Module m1 = new Module() {
>     public void configure(Binder binder) {
>         binder.bind(X.class).to(X.class);
>         binder.bindList(Object.class, "xyz").add(X.class);
>     }
> };
> Module m2 = new Module() {
>     @Override
>     public void configure(Binder binder) {
>         binder.bind(X.class).to(SubX.class);
>     }
> };
> DIBootstrap.createInjector(m1, m2);
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to