Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8304929 MethodTypeDesc throws an unchecked exception than ReflectiveOperationException when a component class cannot be resolved
  3. JDK-8337404

Release Note: MethodTypeDesc.resolveConstantDesc Throws ClassNotFoundException instead of TypeNotPresentException

    XMLWordPrintable

Details

    Description

      In previous releases, `MethodTypeDesc.resolveConstantDesc` threw an unchecked `TypeNotPresentException` instead of a checked `ReflectiveOperationException` when a component class was not found. This behavior is now corrected to throw a `ClassNotFoundException`, conforming to the specification.

      Code that previously handled `TypeNotPresentException` in addition to `ReflectiveOperationException` can consolidate the exception handling into the existing `ReflectiveOperationException` handling.

      Attachments

        Activity

          People

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: