commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CONFIGURATION-382) Duplicate comments are created in Property file when using setReloadingStrategy
Date Sat, 06 Jun 2009 15:38:07 GMT

    [ https://issues.apache.org/jira/browse/CONFIGURATION-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716888#action_12716888
] 

Oliver Heger commented on CONFIGURATION-382:
--------------------------------------------

Any news here?

As I cannot reproduce the problem and got no feedback, I tend to close this ticket as invalid.

> 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