[
https://issues.apache.org/jira/browse/IO-621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16925192#comment-16925192
]
Gary Gregory commented on IO-621:
---------------------------------
How so?
> 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)