[jboss-jira] [JBoss JIRA] Created: (JBAS-3871) org.jboss.util.property.Property: remove property is broken

Eike Dawid (JIRA) jira-events at jboss.com
Mon Nov 20 08:04:41 EST 2006


org.jboss.util.property.Property: remove property is broken
-----------------------------------------------------------

                 Key: JBAS-3871
                 URL: http://jira.jboss.com/jira/browse/JBAS-3871
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Other
    Affects Versions: JBossAS-4.0.4.GA
         Environment: n/a
            Reporter: Eike Dawid


playing around with a different format for system properties  i have noticed that the "remove(final String name)" function of the SystemProperties service is broken.
It actually doesn't work at all.

The reason is a wrong method call in org.jboss.util.property.Property. 
The "remove" method on this call looks like this:

 /** 
    * Remove a property 
    *
    * @param name    Property name
    * @return        Removed property value or null
    */
   public static String remove(String name)
   {
      return PropertyManager.getProperty(name);
   }

As you can see it is calling the getProperty method on the PropertyManager instead of calling "removeProperty".

cheers
Eike


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list