-
Bug
-
Resolution: Fixed
-
P4
-
9
-
None
-
b17
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8204722 | 11.0.1 | Vivek Theeyarath | P4 | Resolved | Fixed | team |
MethodHandles.insertArguments(MethodHandle target, int pos, Object... values) throws IllegalArgumentException if pos is an illegal index to the target's parameters array, or if there is too many values to insert, but Javadoc doesn't specify that.
For example, all the calls below throw IAE
==================================
MethodHandle mh = empty(methodType(void.class));
insertArguments(mh, -1);
insertArguments(mh, 1);
insertArguments(mh, 0, 1);
==================================
For example, all the calls below throw IAE
==================================
MethodHandle mh = empty(methodType(void.class));
insertArguments(mh, -1);
insertArguments(mh, 1);
insertArguments(mh, 0, 1);
==================================
- backported by
-
JDK-8204722 MethodHandles.insertArguments doesn't specify IllegalArgumentException on index mismatch
-
- Resolved
-
- csr for
-
JDK-8202991 MethodHandles.insertArguments doesn't specify IllegalArgumentException on index mismatch
-
- Closed
-