8156868: MethodHandles.zero(Class) doc issues

Reviewed-by: psandoz, mhaupt
This commit is contained in:
Michael Haupt 2016-06-02 14:28:16 +02:00
parent 7cc6c1d553
commit 3eec24e560
5 changed files with 9 additions and 8 deletions

View File

@ -54,7 +54,7 @@ import java.util.Objects;
* a naked name/type pair.
* A member name may also have non-zero modifier flags.
* Finally, a member name may be either resolved or unresolved.
* If it is resolved, the existence of the named
* If it is resolved, the existence of the named member has been determined by the JVM.
* <p>
* Whether resolved or not, a member name provides no access rights or
* invocation capability to its possessor. It is merely a compact

View File

@ -645,7 +645,7 @@ public abstract class MethodHandle {
* <p>
* This method is also equivalent to the following code:
* <blockquote><pre>{@code
* invokeWithArguments(arguments.toArray()
* invokeWithArguments(arguments.toArray())
* }</pre></blockquote>
*
* @param arguments the arguments to pass to the target

View File

@ -3016,6 +3016,7 @@ assert((int)twice.invokeExact(21) == 42);
* @throws NullPointerException if the argument is null
* @see MethodHandles#constant
* @see MethodHandles#empty
* @see MethodHandles#explicitCastArguments
* @since 9
*/
public static MethodHandle zero(Class<?> type) {

View File

@ -90,9 +90,9 @@ public final class Unsafe {
*
* (It may assist compilers to make the local variable {@code final}.)
*
* @throws SecurityException if a security manager exists and its
* {@code checkPropertiesAccess} method doesn't allow
* access to the system properties.
* @throws SecurityException if the class loader of the caller
* class is not in the system domain in which all permissions
* are granted.
*/
@CallerSensitive
public static Unsafe getUnsafe() {

View File

@ -87,9 +87,9 @@ public final class Unsafe {
*
* (It may assist compilers to make the local variable {@code final}.)
*
* @throws SecurityException if a security manager exists and its
* {@code checkPropertiesAccess} method doesn't allow
* access to the system properties.
* @throws SecurityException if the class loader of the caller
* class is not in the system domain in which all permissions
* are granted.
*/
@CallerSensitive
public static Unsafe getUnsafe() {