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

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

According to the spec, the string value must be converted to a Character using 
Integer.parseInt() which is expected to fail in this context -- the current 
implementation is of course wrong by (a) not using Integer.parseInt() and (b) 
not failing.

References:
- https://mail.osgi.org/pipermail/osgi-dev/2011-September/003226.html
- https://www.osgi.org/members/bugzilla/show_bug.cgi?id=2104

> 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