[ 
https://issues.apache.org/jira/browse/FELIX-3087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095892#comment-13095892
 ] 

Felix Meschberger commented on FELIX-3087:
------------------------------------------

I am unclear here, what the correct result would actually be ...

The spec states for the value attribute, that the Integer.valueOf method should 
be used to convert the string to a character. The implementation currently just 
takes the first character in the string as the character value... maybe we 
should bring this to the OSGi Dev List

> Given invalid value, but the property isn't invalid.
> ----------------------------------------------------
>
>                 Key: FELIX-3087
>                 URL: https://issues.apache.org/jira/browse/FELIX-3087
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR)
>    Affects Versions:  scr-1.6.0
>            Reporter: Yasuhiro Kawame
>
> Given the following XML, the value of the property will be invalid.
> But this property is a valid property, with a value of char 'a'.
> <?xml version="1.0" encoding="UTF-8"?>
>   <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0";>
>     <implementation class="DummyClass" /> 
>     <property name="test.property.Character" type="Character" value="ab" />
>   </scr:component>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to