felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-5486) [gogo][runtime] Avoid unnecessary conversions from strings to booleans/integers
Date Wed, 11 Jan 2017 11:08:58 GMT

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

Guillaume Nodet resolved FELIX-5486.
------------------------------------
    Resolution: Fixed

Committing to https://svn.apache.org/repos/asf/felix/trunk ...
	M	gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Closure.java
	M	gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/CommandProxy.java
	M	gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/Reflective.java
	M	gogo/runtime/src/test/java/org/apache/felix/gogo/runtime/TestCoercion.java
Committed r1778273


> [gogo][runtime] Avoid unnecessary conversions from strings to booleans/integers
> -------------------------------------------------------------------------------
>
>                 Key: FELIX-5486
>                 URL: https://issues.apache.org/jira/browse/FELIX-5486
>             Project: Felix
>          Issue Type: Bug
>          Components: Gogo Runtime
>    Affects Versions: gogo.runtime-1.0.2
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: gogo.runtime-1.0.4
>
>
> This can be problematic when calling methods and loosing the string if it looks like
a number, for example:
> {code}
> > delete-version 1.10
> {code}
> During this call, the parameter is transformed to an integer and then back to a string,
so the method is called with "1.1" instead of "1.10" which can be *really* problematic.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message