xia0c created IO-621:
------------------------

             Summary: 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


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
(v7.6.14#76016)

Reply via email to