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

Reviewed-by: sundar, mhaupt
This commit is contained in:
Shilpi Rastogi 2016-06-06 09:13:35 +02:00
parent 3af1187ad7
commit 389fc2ae25
2 changed files with 13 additions and 4 deletions

View file

@ -3360,9 +3360,9 @@ assertEquals("xy", h3.invoke("x", "y", 1, "a", "b", "c"));
* @param pos place in {@code newTypes} where the non-skipped target parameters must occur
* @return a possibly adapted method handle
* @throws NullPointerException if either argument is null
* @throws 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 {@code pos}
* @throws IllegalArgumentException if any element of {@code newTypes} is {@code void.class},
* or if either index is out of range in its corresponding list,
* or if the non-skipped target parameter types match the new types at {@code pos}
* @since 9
*/
public static