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

Updating source incompatible issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Won't Fix
    • 2.6
    • None
    • Utilities
    • Important

    Description

      Hi,

      The following code snippets throw an incompatible issue when I try to rolling update Commons IO from 2.4 to 2.6.

      @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();
          }
      }
      

      Thanks a lot.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: