[ 
https://issues.apache.org/jira/browse/IO-621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16925196#comment-16925196
 ] 

Silence Tai commented on IO-621:
--------------------------------

The *close* method in the *LineIterator* class throws an 
{color:#DE350B}IOException{color} in the c1d92d87 commit.

{code:java}
    public void close() throws IOException {
        finished = true;
        cachedLine = null;
        if (this.bufferedReader != null) {
            this.bufferedReader.close();
        }
    }
{code}


> 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