Code review request for 6857789: (reflect) Create common superclass of reflective exceptions

Joseph D. Darcy Joe.Darcy at Sun.COM
Fri Jul 10 17:51:35 UTC 2009


Jason Mehrens wrote:
> Joe,
>  
> 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

"LinkageException" is a shorter name, but these conditions do not 
indicate there is a problem with linkage.  If there were a linkage 
program, you wouldn't have the reflective object to work with.

-Joe




More information about the core-libs-dev mailing list