commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <>
Subject [jira] Commented: (BEANUTILS-257) Many of the helper methods expose the java.lang exceptions. I'd like to convert them to RuntimeExceptions
Date Sat, 18 Nov 2006 03:08:38 GMT
    [ ] 
Niall Pemberton commented on BEANUTILS-257:

Aaron thanks for preparing a patch. This would need to go into a BeanUtils 2 version since
it isn't backwardly compatible. Whether there will ever be a BeanUtils 2 version is another
question. At this point in time I don't think the chances are high.

> Many of the helper methods expose the java.lang exceptions. I'd like to convert them
to RuntimeExceptions
> ---------------------------------------------------------------------------------------------------------
>                 Key: BEANUTILS-257
>                 URL:
>             Project: Commons BeanUtils
>          Issue Type: Improvement
>          Components: Bean / Property Utils
>    Affects Versions: 1.8.0
>            Reporter: Aaron Digulla
>             Fix For: LATER THAN 1.8.0
>         Attachments: beanutils-nce.patch
> Hello,
> A lot of the helper functions throw checked exceptions (mostly IllegalAccessException,
InvocationTargetException and NoSuchMethodException). I'd like to write a patch which converts
them all into RuntimeExceptions so the code upstream doesn't have to handle them.
> Rationale: When working with properties, you usually expect the code to work. When working
with dynamic properties, you don't care about what went wrong but only that something went
wrong. In most cases, it's not possible to fix the problem automatically but the code has
to pass the exception up.
> This all calls for non-checked exceptions.
> My patch would be against the SVN version and contain these changes:
> - The old methods would still be there with an E at the end (for "throws a checked exception").
> - The new code would throw exceptions based on a common exception so you can catch all
the exceptions thrown in beanutils in one statement. IAE, ITE, etc. would then be derived
from this base class so you can still filter them.
> Since this is going to involve some work, I wanted to ask beforehand if you would accept
such a patch.
> Best regards.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message