You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Leangen (JIRA)" <ji...@apache.org> on 2016/09/08 09:12:20 UTC

[jira] [Created] (FELIX-5341) Exception thrown when field in Map missing from DTO

David Leangen created FELIX-5341:
------------------------------------

             Summary: 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


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
(v6.3.4#6332)