commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From netomi <>
Subject [GitHub] commons-lang pull request: Ability to throw checked exceptions wit...
Date Sat, 20 Jun 2015 15:41:47 GMT
Github user netomi commented on the pull request:
    My bad, I missed that the type argument will get erased, but in fact this makes it even
worse. With this method you can outwit the compiler, throwing a checked exception further
up the stack, leading to situations where code that would never expect a checked exception
force to handle it.
    I would prefer to explicitly throw the checked exception wrapped in a RuntimeException
as guava does in its Throwables class.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message