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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • None
    • core-libs

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: