You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "James Roper (JIRA)" <ji...@apache.org> on 2014/07/30 09:53:38 UTC
[jira] [Created] (IVY-1480) IvySettings treats system properties as
if they are all strings
James Roper created IVY-1480:
--------------------------------
Summary: IvySettings treats system properties as if they are all strings
Key: IVY-1480
URL: https://issues.apache.org/jira/browse/IVY-1480
Project: Ivy
Issue Type: Bug
Reporter: James Roper
Priority: Minor
System.getProperties is a global map that anything that uses it must be very careful with, not making any assumptions about anything else that uses it. It is possible to put non String values into it, and in fact it seems that Properties was designed to support this, seeing as there exists methods such as stringPropertyNames, which only returns properties whose values are strings.
IvySettings.addAllVariables however assumes that all property values are Strings, so anything that has put a non string value into the global system properties breaks ivy. addAllVariables should, just as System.getProperty does, check if a value is an instance of String, and only handle it if it is, otherwise treat it as if it doesn't exist.
--
This message was sent by Atlassian JIRA
(v6.2#6252)