MethodTypeDesc throws an unchecked exception than ReflectiveOperationException when a component class cannot be resolved

XMLWordPrintable

    • b08
    • Verified

      Consider this:

          var t = MethodTypeDesc.of(ClassDesc.of("DoesNotExist"));
          t.resolveConstantDesc(MethodHandles.lookup());

      ConstantDesc.resolveConstantDesc specifies that a checked ReflectiveOperationException is thrown if a class cannot be resolved, yet MethodTypeDesc.resolveConstantDesc throws an unchecked TypeNotPresentException.

        There are no Sub-Tasks for this issue.

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

              Created:
              Updated:
              Resolved: