-
Type:
Sub-task
-
Resolution: Unresolved
-
Priority:
P4
-
None
-
Affects Version/s: 11
-
Component/s: core-libs
-
None
There are the following problems in the specification of the given method:
1. It says an IllegalArgumentException is thrown if "[...] or collectArgPos has an illegal value (negative, or greater than the number of arguments) [...]", however, the upper bound is exclusive, so it should be "negative, or greater or equals to the number of arguments".
2. @throws WrongMethodTypeException if the implied {@code asType} call fails
This statement is correct for the other asCollector variant, but "asType" behavior does not apply when collecting arrays in the middle of a method handle. There is also no other mention of an "asType" call, so it isn't implied.
1. It says an IllegalArgumentException is thrown if "[...] or collectArgPos has an illegal value (negative, or greater than the number of arguments) [...]", however, the upper bound is exclusive, so it should be "negative, or greater or equals to the number of arguments".
2. @throws WrongMethodTypeException if the implied {@code asType} call fails
This statement is correct for the other asCollector variant, but "asType" behavior does not apply when collecting arrays in the middle of a method handle. There is also no other mention of an "asType" call, so it isn't implied.