You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2016/05/28 10:53:12 UTC
[jira] [Resolved] (LANG-1228) IllegalAccessException swallowed in
indexOfThrowable and indexOfType
[ https://issues.apache.org/jira/browse/LANG-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher resolved LANG-1228.
-------------------------------------
Resolution: Fixed
Assignee: Pascal Schumacher
Fix Version/s: 3.5
> IllegalAccessException swallowed in indexOfThrowable and indexOfType
> --------------------------------------------------------------------
>
> Key: LANG-1228
> URL: https://issues.apache.org/jira/browse/LANG-1228
> Project: Commons Lang
> Issue Type: Bug
> Reporter: Bradley Hess
> Assignee: Pascal Schumacher
> Priority: Minor
> Fix For: 3.5
>
>
> If {{ExceptionUtils.getCause}} is provided a throwable whose cause method cannot be interrogated by reflection due to an IllegalAccessError, the cause is not presented to the client.
> In principle this is to be expected from this legacy method. However, {{indexOfThrowable}} and {{indexOfType}} rely on {{getCause}}, and are not marked as deprecated.
> Now that {{Throwable.getCause}} has been in the language for quite some time, I'd like to propose that, until {{ExceptionUtils.getCause}} is actually removed, that its behavior be modified to first attempt to get the exception cause using normal invocation, falling back to reflection if no cause is found.
> I'll be pushing a GitHub PR to this effect.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)