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

Yu Zhang updated IO-485:
------------------------
    Environment: Mac OSX, jdk1.8  (was: Mac OSX, jdk1.8)

> org.apache.commons.io.output.LockableFileWriter#append() would override 
> rather than append when two instance invoke this method to a same file.
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: IO-485
>                 URL: https://issues.apache.org/jira/browse/IO-485
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Streams/Writers
>    Affects Versions: 2.4
>         Environment: Mac OSX, jdk1.8
>            Reporter: Yu Zhang
>              Labels: easyfix
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> LockableFileWriter fw0 = new LockableFileWriter("/tmp/push_failure.log");
>         fw0.append("hello,\n");
>         fw0.flush();
>         fw0.close();
> LockableFileWriter fw1 = new LockableFileWriter("/tmp/push_failure.log");
>         fw1.append("world.");
>         fw1.flush();
>         fw1.close();
> then the file's content is "world."



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to