diff --git a/src/java.base/share/classes/java/lang/invoke/MethodHandles.java b/src/java.base/share/classes/java/lang/invoke/MethodHandles.java index 7199dd59476..68362980a04 100644 --- a/src/java.base/share/classes/java/lang/invoke/MethodHandles.java +++ b/src/java.base/share/classes/java/lang/invoke/MethodHandles.java @@ -2333,7 +2333,7 @@ public class MethodHandles { * before calling this factory method. * * @throws IllegalArgumentException if {@code bytes} is not a class or interface or - * {@bytes} denotes a class in a different package than the lookup class + * {@code bytes} denotes a class in a different package than the lookup class */ private ClassDefiner makeClassDefiner(byte[] bytes) { ClassFile cf = ClassFile.newInstance(bytes, lookupClass().getPackageName()); @@ -2351,7 +2351,7 @@ public class MethodHandles { * @return ClassDefiner that defines a hidden class of the given bytes. * * @throws IllegalArgumentException if {@code bytes} is not a class or interface or - * {@bytes} denotes a class in a different package than the lookup class + * {@code bytes} denotes a class in a different package than the lookup class */ ClassDefiner makeHiddenClassDefiner(byte[] bytes) { ClassFile cf = ClassFile.newInstance(bytes, lookupClass().getPackageName()); @@ -2372,7 +2372,7 @@ public class MethodHandles { * @return ClassDefiner that defines a hidden class of the given bytes and options * * @throws IllegalArgumentException if {@code bytes} is not a class or interface or - * {@bytes} denotes a class in a different package than the lookup class + * {@code bytes} denotes a class in a different package than the lookup class */ ClassDefiner makeHiddenClassDefiner(byte[] bytes, Set options, @@ -5182,7 +5182,7 @@ assert((int)twice.invokeExact(21) == 42); * @return a method handle which inserts an additional argument, * before calling the original method handle * @throws NullPointerException if the target or the {@code values} array is null - * @throws IllegalArgumentException if (@code pos) is less than {@code 0} or greater than + * @throws IllegalArgumentException if {@code pos} is less than {@code 0} or greater than * {@code N - L} where {@code N} is the arity of the target method handle and {@code L} * is the length of the values array. * @throws ClassCastException if an argument does not match the corresponding bound parameter