JVMCI: MethodHandleAccessProvider.resolveLinkToTarget throws NPE/IAE on null/wrong argument

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • b115

      According to javadoc MethodHandleAccessProvider.resolveLinkToTarget(JavaConstant) returns ResolvedJAvaMethod or null.
      However, current implementation throws NPE in case of null argument and IllegalArgumentException in case of non-MethodHandle argument. Method or javadoc should be modified to match each other.

            Assignee:
            Douglas Simon
            Reporter:
            Dmitrij Pochepko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: