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

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

                Author: ASF GitHub Bot
            Created on: 18/Mar/20 16:14
            Start Date: 18/Mar/20 16:14
    Worklog Time Spent: 10m 
      Work Description: bosschaert commented on pull request #9: Convert to 
Interface without methods - FELIX-6238
URL: https://github.com/apache/felix-dev/pull/9
 
 
   
 
----------------------------------------------------------------
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:
us...@infra.apache.org


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

    Worklog Id:     (was: 405547)
    Time Spent: 20m  (was: 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: 20m
>  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)

Reply via email to