commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Yang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CONFIGURATION-581) SystemConfiguration can not get the correct system property
Date Thu, 05 Jun 2014 06:40:01 GMT
Jack Yang created CONFIGURATION-581:
---------------------------------------

             Summary: SystemConfiguration can not get the correct system property
                 Key: CONFIGURATION-581
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-581
             Project: Commons Configuration
          Issue Type: Bug
    Affects Versions: 1.10
            Reporter: Jack Yang
            Priority: Critical


Currently the SystemConfiguration does not handle the scenario like below

  System.setProperty("demoId", "demoValue");
  SystemConfiguration sysConf = new SystemConfiguration ();
  System.setProperties(new Properties(System.getProperties())));

 System.setProperty("demoId", "newDemoValue");
 String propertyFromSysConf = sysConf.getProperty("demoId")
 
In the above code the value of propertyFromSysConf is demoValue but not newDemoValue, and
I think the correct value should be newDemoValue



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message