(reflect) Create common superclass of reflective exceptions

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 7
    • Affects Version/s: 5.0, 6, 7
    • Component/s: core-libs
    • 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.

            Assignee:
            Joe Darcy
            Reporter:
            Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: