You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/03/09 19:36:00 UTC

[jira] [Work logged] (FELIX-6238) Convert to Interface without methods without Exception

     [ https://issues.apache.org/jira/browse/FELIX-6238?focusedWorklogId=400325&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-400325 ]

ASF GitHub Bot logged work on FELIX-6238:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Mar/20 19:35
            Start Date: 09/Mar/20 19:35
    Worklog Time Spent: 10m 
      Work Description: stbischof commented on pull request #9: Convert to Interface without methods - FELIX-6238
URL: https://github.com/apache/felix-dev/pull/9
 
 
   https://issues.apache.org/jira/browse/FELIX-6238
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 400325)
    Remaining Estimate: 0h
            Time Spent: 10m

> Convert to Interface without methods without Exception
> ------------------------------------------------------
>
>                 Key: FELIX-6238
>                 URL: https://issues.apache.org/jira/browse/FELIX-6238
>             Project: Felix
>          Issue Type: Bug
>          Components: Converter
>            Reporter: Stefan Bischof
>            Priority: Critical
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
>  
> Converter should Convert to an Interface without methods without Exception
> Example
> {code:java}
> public interface I
> {
> }{code}
>  
> {code:java}
>  I i = Converters.standardConverter()
>                  .convert(Map.of("a", "b"))
>                  .to(I.class);{code}
> throws Exception:
> {code:java}
> org.osgi.util.converter.ConversionException: Cannot convert a to interface org.apache.felix.atomos.substrate.core.I
>  at org.osgi.util.converter@1.0.1/org.osgi.util.converter.ConvertingImpl.to(ConvertingImpl.java:212)
>  at org.osgi.util.converter@1.0.1/org.osgi.util.converter.CustomConverterImpl$ConvertingWrapper.to(CustomConverterImpl.java:176)
>  at org.osgi.util.converter@1.0.1/org.osgi.util.converter.CustomConverterImpl$ConvertingWrapper.to(CustomConverterImpl.java:139)
>  at org.osgi.util.converter@1.0.1/org.osgi.util.converter.ConvertingImpl.convertMapEntryToSingleValue(ConvertingImpl.java:260)
>  at org.osgi.util.converter@1.0.1/org.osgi.util.converter.ConvertingImpl.to(ConvertingImpl.java:197)
>  at org.osgi.util.converter@1.0.1/org.osgi.util.converter.CustomConverterImpl$ConvertingWrapper.to(CustomConverterImpl.java:176)
>  at org.osgi.util.converter@1.0.1/org.osgi.util.converter.CustomConverterImpl$ConvertingWrapper.to(CustomConverterImpl.java:139)
>  
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)