MethodHandles.dropArgumentsToMatch(...) non-documented IAE

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: None
    • Component/s: core-libs

      According to documentation,
      IllegalArgumentException - if either index is out of range in its corresponding list, or if the non-skipped target parameter types match the new types at pos


      Passing void.class into newTypes list leads to IAE too. It'd be good to document this case.

      Example is in the attchment.

      Test development is in process. tck_red will be added after test completion.
      Found on jdk9b120

            Assignee:
            Shilpi Rastogi (Inactive)
            Reporter:
            Anastasiya Solodkaya (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: