cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CAY-2326) DI: can't override List/Map elements from another Module
Date Tue, 30 May 2017 09:18:04 GMT

     [ 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)

Mime
View raw message