8156868: MethodHandles.zero(Class) doc issues
Reviewed-by: psandoz, mhaupt
This commit is contained in:
parent
7cc6c1d553
commit
3eec24e560
@ -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
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user