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

MethodHandles.dropArgumentsToMatch(...)

    XMLWordPrintable

Details

    Description

      Acording 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

      Expected: for list L index should be in [0, L.size())
      Actual: for list L index could be in [0, L.size()]

      Examples attached (for 'target' and 'newType' both). I suppose it'd be better to specify bounds of indices (e.g. IAE in the case of index more then corresponding list's size).

      Test development is in the process. tck_red will be added after test develpment completion.

      Was 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: