You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2022/06/23 12:44:00 UTC
[jira] [Closed] (IO-759) behavior change of org.apache.commons.io.output.FileWriterWithEncoding
[ https://issues.apache.org/jira/browse/IO-759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory closed IO-759.
------------------------------
Resolution: Cannot Reproduce
Closing as CR, no test.
> behavior change of org.apache.commons.io.output.FileWriterWithEncoding
> ----------------------------------------------------------------------
>
> Key: IO-759
> URL: https://issues.apache.org/jira/browse/IO-759
> Project: Commons IO
> Issue Type: Bug
> Affects Versions: 2.11.0
> Reporter: Christoph Hart
> Priority: Major
>
> *behavior change* of {*}org.apache.commons.io.output.FileWriterWithEncoding{*}!
> - Using commons-io-2.10.0.jar overwritting a file just creates a new file with the new content.
> - Using commons-io-2.11.0.jar overwrites just the existing file with new content, but leaves the rest of previous biger content in the file.
> Code example:
> try (BufferedWriter fkfwr = new BufferedWriter(new FileWriterWithEncoding(ftokeyfile,"UTF-8"))) { ...
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)