[ https://issues.apache.org/jira/browse/FELIX-6242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070331#comment-17070331 ]
Carsten Ziegeler commented on FELIX-6242: ----------------------------------------- It seems the same problem happens for other target types like Float, too: assertEquals(Float.valueOf(1.0), converter.convert(Boolean.TRUE).to(Float.class)) returns an Integer object which then fails the above check I assume that more types are affected > Conversion of boolean to Long results in Integer > ------------------------------------------------ > > Key: FELIX-6242 > URL: https://issues.apache.org/jira/browse/FELIX-6242 > Project: Felix > Issue Type: Bug > Components: Converter > Affects Versions: converter-1.0.12 > Reporter: Carsten Ziegeler > Assignee: A. J. David Bosschaert > Priority: Major > Fix For: converter-1.0.14 > > > When converting a boolean to a Long, an Integer is returned. the following > test fails: > assertEquals(Long.valueOf(1), > converter.convert(Boolean.TRUE).to(Long.class)); -- This message was sent by Atlassian Jira (v8.3.4#803005)