xia0c created IO-623:
------------------------

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


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

Reply via email to