[ http://issues.apache.org/jira/browse/BEANUTILS-257?page=comments#action_12447216 ] Henri Yandell commented on BEANUTILS-257: -----------------------------------------
Hi Aaron, It's probably better to bring this up as an email on commons-dev to see what people think. The danger of doing a patch at the moment is that we're just starting to get to work on a minor release containing the various fixes of the last couple of years and the mountain of issues in JIRA and your change would be a major release change. Any patch you make at the moment is likely to be too dated by the time it comes to apply it. > Many of the helper methods expose the java.lang exceptions. I'd like to > convert them to RuntimeExceptions > --------------------------------------------------------------------------------------------------------- > > Key: BEANUTILS-257 > URL: http://issues.apache.org/jira/browse/BEANUTILS-257 > Project: Commons BeanUtils > Issue Type: Improvement > Affects Versions: 1.8.0 > Reporter: Aaron Digulla > > 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: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
