Code review request for 6857789: (reflect) Create common superclass of reflective exceptions
jason_mehrens at hotmail.com
Fri Jul 10 15:14:27 UTC 2009
Wouldn't LinkageException be a better fit than ReflectiveOperationException? Shorter name and it would mimic the LinkageError inheritance tree introduced in JDK1.0. I.E. LinkageError -> NoClassDefFoundError, LinkageException -> ClassNotFoundException
> This request seems dangerous,
> InvocationTargetException should not be retrofitted because
> usually its catch block is different from the others.
> John Rose recently proposes on coin-dev list a method that can be included
> in the JDK, see
> to simplify catch blocks that catch an InvocationTargetException.
I would think throwing UndeclaredThrowableException would be better than InternalError.
Insert movie times and more without leaving Hotmail®.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the core-libs-dev