Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8158171

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • 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

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

              Created:
              Updated:
              Resolved: