8157590: MethodHandles.arrayLength() lacks @since tag, implementation throws wrong exception

Reviewed-by: psandoz
This commit is contained in:
Michael Haupt 2016-05-24 09:13:47 +02:00
parent a74cd0321d
commit 73dea49766
2 changed files with 11 additions and 6 deletions

View file

@ -2252,6 +2252,7 @@ return mh1;
* @return a method handle which can retrieve the length of an array of the given array type
* @throws NullPointerException if the argument is {@code null}
* @throws IllegalArgumentException if arrayClass is not an array type
* @since 9
*/
public static
MethodHandle arrayLength(Class<?> arrayClass) throws IllegalArgumentException {