[ 
https://issues.apache.org/jira/browse/FELIX-5306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Konrad Windszus updated FELIX-5306:
-----------------------------------
    Comment: was deleted

(was: [~gnt] Thanks for the info. Any reason why only read was adjusted and the 
simple format is not preferably used for writing as well 
(https://github.com/apache/felix/blob/cad8a5ff22c6184e29e2f22cf561944b9f1747fd/utils/src/main/java/org/apache/felix/utils/properties/ConfigurationHandler.java#L872)?)

> User friendly syntax for floats and doubles in FileInstall
> ----------------------------------------------------------
>
>                 Key: FELIX-5306
>                 URL: https://issues.apache.org/jira/browse/FELIX-5306
>             Project: Felix
>          Issue Type: Bug
>          Components: File Install
>            Reporter: munene kiruja
>            Assignee: Guillaume Nodet
>            Priority: Major
>             Fix For: utils-1.10.2, fileinstall-3.6.2
>
>
> The format for specifying a float in the .config format is <key>=F"<float 
> value> and similarly for doubles but with the type character D.
> When the floats and doubles are encountered in the config, 
> java.lang.NumberFormatException is thrown with the message like:
> {code}
> java.lang.NumberFormatException: For input string: "400.333"
>       at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
>       at java.lang.Integer.parseInt(Integer.java:580)
>       at java.lang.Integer.parseInt(Integer.java:615)
> {code} 
> The code is actually parsing using Integer and Long classes!! 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to