Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-624

IOUtils.writeLines updating incompatible issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • 2.6
    • None
    • Utilities
    • None

    Description

      Hi,

      The following code snippets throw an incompatible issue when I try to rolling update Commons-io from 2.2 to 2.6.

      @Test
      public void test() throws IOException{
      	
      	File TestFile = new File( "test.txt" );
      	OutputStream out = null;
      	List<String> lines = Arrays.asList("a","b","c");
          try {
              out = new FileOutputStream(TestFile, true);
              IOUtils.writeLines(lines, null, out, null);
          } finally {
              IOUtils.closeQuietly(out);
          }
      

      It throws an error:

      error: reference to writeLines is ambiguous
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            lingchao xia0c
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: