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

Sebb updated IO-485:
--------------------
    Summary: org.apache.commons.io.output.LockableFileWriter#append() 
overwrites rather than appends when two instance invoke this method to a same 
file.  (was: org.apache.commons.io.output.LockableFileWriter#append() would 
override rather than append when two instance invoke this method to a same 
file.)

> org.apache.commons.io.output.LockableFileWriter#append() overwrites rather 
> than appends 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