You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Boris Unckel (Jira)" <ji...@apache.org> on 2021/01/28 09:10:00 UTC

[jira] [Created] (IO-710) Utilize java.io.UncheckedIOException, rethrow SecurityException

Boris Unckel created IO-710:
-------------------------------

             Summary: Utilize java.io.UncheckedIOException, rethrow SecurityException
                 Key: IO-710
                 URL: https://issues.apache.org/jira/browse/IO-710
             Project: Commons IO
          Issue Type: Improvement
          Components: Utilities
    Affects Versions: 2.8.0
            Reporter: Boris Unckel


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)