You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (Jira)" <ji...@apache.org> on 2020/08/09 13:52:00 UTC

[jira] [Resolved] (IO-623) IOUtils.lineIterator updating incompatible issue

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

Sebb resolved IO-623.
---------------------
    Resolution: Information Provided

> IOUtils.lineIterator updating incompatible issue
> ------------------------------------------------
>
>                 Key: IO-623
>                 URL: https://issues.apache.org/jira/browse/IO-623
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.6
>            Reporter: xia0c
>            Priority: Major
>              Labels: performance
>
> Hi,
> The following code snippets throw an incompatible issue when I try to rolling update Commons-io from 2.1 to 2.6.
> {code:java}
> // Some comments here
> @Test
> public void Test() throws IOException{
> 	LineIterator iter = IOUtils.lineIterator (getClass ().getResourceAsStream ("/tmp/test.txt"), null);
> }
> {code}
> It throws an error:
> {code:java}
> reference to lineIterator is ambiguous
> [ERROR] both method lineIterator(java.io.InputStream,java.nio.charset.Charset) in org.apache.commons.io.IOUtils and method lineIterator(java.io.InputStream,java.lang.String) in org.apache.commons.io.IOUtils match
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)