-
Bug
-
Resolution: Fixed
-
P3
-
5.0, 6, 7
-
None
-
b68
-
generic, x86
-
generic, windows_xp
There are at least a half dozen semantically related checked exceptions thrown by methods in the core reflection classes, java.lang.Class and java.lang.reflect.*:
java.lang.NoSuchMethodException
java.lang.NoSuchFieldException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
Programming using reflection would be more convenient if there was a common superclass more specific than Exception so that all these conditions could be caught with one catch block.
java.lang.NoSuchMethodException
java.lang.NoSuchFieldException
java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
Programming using reflection would be more convenient if there was a common superclass more specific than Exception so that all these conditions could be caught with one catch block.
- duplicates
-
JDK-6368013 (reflect) RFE: create a common superclass for reflection exceptions
- Closed
- relates to
-
JDK-6869697 Missing entry in makefiles for java/lang/ReflectiveOperationException.java
- Resolved
-
JDK-6794071 Provide exception superclass for UnknownFooExceptions
- Closed