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

IOUtils.readLines source compatibility change

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Information Provided
    • 2.12.0
    • None
    • Utilities
    • None

    Description

      org.apache.commons.io.IOUtils.readLines no longer throws IOException as of 2.12.0 but rather throws an UncheckedIOException. 

      This is a breaking change in that wrapping such a call with try catch (IOException e) now attracts a compile error because the method no longer throws IOException.

      I'm unaware if this is a routine thing for this library, I would hope not. I can fix my code but I expected this sort of change only to be made with a major version number bump.

      Attachments

        Activity

          People

            Unassigned Unassigned
            davidmoten2 Dave Moten
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: