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

Utilize java.io.UncheckedIOException, rethrow SecurityException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.8.0
    • None
    • Utilities
    • None

    Description

      Some methods catch IOExceptions and rethrow them in other RuntimeException based exceptions (IllegalStateException, IllegalArgumentException).

      The JRE offers a standard for this usecase: java.io.UncheckedIOException

      In one case a SecurityException would be hidden. This is awfull if you're trying to find the right set of permissions to make the SecurityManager work. The default must be to rethrow them.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xf01213 Boris Unckel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m