[
https://issues.apache.org/jira/browse/JCI-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved JCI-74.
---------------------
Resolution: Fixed
Fix Version/s: 1.1
URL: http://svn.apache.org/r1517922
Log:
JCI-74 - FilesystemAlterationMonitor.delay is not safely published
Modified:
commons/proper/jci/trunk/fam/src/main/java/org/apache/commons/jci/monitor/FilesystemAlterationMonitor.java
> FilesystemAlterationMonitor.delay is not safely published
> ---------------------------------------------------------
>
> Key: JCI-74
> URL: https://issues.apache.org/jira/browse/JCI-74
> Project: Commons JCI
> Issue Type: Bug
> Components: fam
> Affects Versions: 1.0
> Reporter: Sebb
> Fix For: 1.1
>
>
> The field FilesystemAlterationMonitor.delay is read by the daemon thread but
> the writer and reader do not use synchronisation.
> If the delay is changed after the thread is started, any changes may not be
> seen by the thread (unsafe publication).
> The delay field needs to be made volatile.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira