Release Note: `java.lang.constant.MethodTypeDesc.resolveConstantDesc` Throws ClassNotFoundException Instead of TypeNotPresentException

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: