# HG changeset patch # User mchung # Date 1574451262 28800 # Node ID a2a921609481100aee9f30f6313ec1b6081a5d4e # Parent fba8fa613d1add43471ab762f9de61dbfd5e8f10 8233956: MethodHandles.dropArguments javadoc lists parameters in wrong order Reviewed-by: jjg diff -r fba8fa613d1a -r a2a921609481 src/java.base/share/classes/java/lang/invoke/MethodHandles.java --- a/src/java.base/share/classes/java/lang/invoke/MethodHandles.java Fri Nov 22 10:38:35 2019 -0800 +++ b/src/java.base/share/classes/java/lang/invoke/MethodHandles.java Fri Nov 22 11:34:22 2019 -0800 @@ -4286,8 +4286,8 @@ * {@link #dropArguments(MethodHandle,int,Class...) dropArguments}{@code (target, pos, valueTypes.toArray(new Class[0]))} * * @param target the method handle to invoke after the arguments are dropped + * @param pos position of first argument to drop (zero for the leftmost) * @param valueTypes the type(s) of the argument(s) to drop - * @param pos position of first argument to drop (zero for the leftmost) * @return a method handle which drops arguments of the given types, * before calling the original method handle * @throws NullPointerException if the target is null, @@ -4366,8 +4366,8 @@ * {@link #dropArguments(MethodHandle,int,List) dropArguments}{@code (target, pos, Arrays.asList(valueTypes))} * * @param target the method handle to invoke after the arguments are dropped + * @param pos position of first argument to drop (zero for the leftmost) * @param valueTypes the type(s) of the argument(s) to drop - * @param pos position of first argument to drop (zero for the leftmost) * @return a method handle which drops arguments of the given types, * before calling the original method handle * @throws NullPointerException if the target is null,