You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2015/08/19 10:29:46 UTC

[jira] [Closed] (IO-485) org.apache.commons.io.output.LockableFileWriter#append() overwrites rather than appends when two instance invoke this method to a same file.

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

Sebb closed IO-485.
-------------------

> 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)