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

Gary Gregory resolved IO-621.
-----------------------------
    Resolution: Won't Fix

[~lingchao],

Ah, I see. This is a _source_ incompatible change but it _is_ *binary 
compatible,* therefore it will not be reverted. You must therefore update you 
source code.

In general, we only keep binary compatibility between minor releases. We do not 
guarantee source compatibility.

Thank you,
Gary

> Updating incompatible issue
> ---------------------------
>
>                 Key: IO-621
>                 URL: https://issues.apache.org/jira/browse/IO-621
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.6
>            Reporter: xia0c
>            Priority: Critical
>              Labels: performance
>
> Hi,
> The following code snippets throw an incompatible issue when I try to rolling 
> update Commons IO from 2.4 to 2.6.
> {code:java}
> @Test
> public void DemoTest(){
>       
>     LineIterator it = null;
>     File TestFile = new File("TestFile");
>     try {
>         it = FileUtils.lineIterator(TestFile , "UTF-8");
>         while (it.hasNext()) {
>             String line = it.nextLine();
>         }
>     } catch (IOException e) {
>         e.printStackTrace();
>     } finally {
>         if (it != null)
>             it.close();
>     }
> }
> {code}
> Thanks a lot.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to