felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Bosschaert (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-5341) Exception thrown when field in Map missing from DTO
Date Fri, 16 Sep 2016 07:49:21 GMT

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

David Bosschaert resolved FELIX-5341.
    Resolution: Fixed

Fixed and added test case in: https://svn.apache.org/viewvc?view=revision&revision=1761008

> Exception thrown when field in Map missing from DTO
> ---------------------------------------------------
>                 Key: FELIX-5341
>                 URL: https://issues.apache.org/jira/browse/FELIX-5341
>             Project: Felix
>          Issue Type: Bug
>          Components: Converter
>            Reporter: David Leangen
>            Assignee: David Bosschaert
> I believe that this is not the correct behaviour, so please correct me if I am mistaken.
> If a Map (or Map representation of some object) contains a field, when converting to
a DTO that does *not* contain that field, instead of just ignoring the field, an Exception
is thrown, and the conversion fails.
> The related code is [here|https://github.com/dleangen/felix/blob/trunk/converter/converter/src/main/java/org/apache/felix/converter/impl/ConvertingImpl.java#L242].

This message was sent by Atlassian JIRA

View raw message