commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anjugaselvan (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CONFIGURATION-382) Duplicate comments are created in Property file when using setReloadingStrategy
Date Tue, 21 Apr 2009 04:30:47 GMT

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

Anjugaselvan updated CONFIGURATION-382:
---------------------------------------

    Priority: Critical  (was: Major)

> Duplicate comments are created in Property file when using setReloadingStrategy
> -------------------------------------------------------------------------------
>
>                 Key: CONFIGURATION-382
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-382
>             Project: Commons Configuration
>          Issue Type: Bug
>          Components: File reloading
>         Environment: all platforms
>            Reporter: Anjugaselvan
>            Priority: Critical
>
> Whenever we set a property value in a .properties file, the comments are created twice.
For example, the following is the content of the property file initially.
> # This is comment.
> PropName = PropValue1
> When we change the property value, the comment line is updated twice.
> # This is comment.
> # This is comment.
> PropName = PropValue2
> This issue is seen only when we use setReloadingStrategy() method to notify the property
change event to another running process.
> We are using the following code to notify the process which uses this property.
> propConf.setReloadingStrategy(new FileChangedReloadingStrategy());
> If we remove the above code, we do not see this issue. But if we do not use this method,
the process which uses this property doesnt get this new value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message