changeset 16618:412d79908e35

8156868: MethodHandles.zero(Class) doc issues Reviewed-by: psandoz, mhaupt
author mhaupt
date Thu, 02 Jun 2016 14:28:16 +0200
parents 1e655ccc99f3
children fac51dc689e5
files src/java.base/share/classes/java/lang/invoke/MemberName.java src/java.base/share/classes/java/lang/invoke/MethodHandle.java src/java.base/share/classes/java/lang/invoke/MethodHandles.java src/java.base/share/classes/jdk/internal/misc/Unsafe.java src/jdk.unsupported/share/classes/sun/misc/Unsafe.java
diffstat 5 files changed, 9 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/lang/invoke/MemberName.java	Wed Jun 01 15:28:05 2016 -0700
+++ b/src/java.base/share/classes/java/lang/invoke/MemberName.java	Thu Jun 02 14:28:16 2016 +0200
@@ -54,7 +54,7 @@
  * 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
--- a/src/java.base/share/classes/java/lang/invoke/MethodHandle.java	Wed Jun 01 15:28:05 2016 -0700
+++ b/src/java.base/share/classes/java/lang/invoke/MethodHandle.java	Thu Jun 02 14:28:16 2016 +0200
@@ -645,7 +645,7 @@
      * <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
--- a/src/java.base/share/classes/java/lang/invoke/MethodHandles.java	Wed Jun 01 15:28:05 2016 -0700
+++ b/src/java.base/share/classes/java/lang/invoke/MethodHandles.java	Thu Jun 02 14:28:16 2016 +0200
@@ -3016,6 +3016,7 @@
      * @throws NullPointerException if the argument is null
      * @see MethodHandles#constant
      * @see MethodHandles#empty
+     * @see MethodHandles#explicitCastArguments
      * @since 9
      */
     public static  MethodHandle zero(Class<?> type) {
--- a/src/java.base/share/classes/jdk/internal/misc/Unsafe.java	Wed Jun 01 15:28:05 2016 -0700
+++ b/src/java.base/share/classes/jdk/internal/misc/Unsafe.java	Thu Jun 02 14:28:16 2016 +0200
@@ -90,9 +90,9 @@
      *
      * (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() {
--- a/src/jdk.unsupported/share/classes/sun/misc/Unsafe.java	Wed Jun 01 15:28:05 2016 -0700
+++ b/src/jdk.unsupported/share/classes/sun/misc/Unsafe.java	Thu Jun 02 14:28:16 2016 +0200
@@ -87,9 +87,9 @@
      *
      * (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() {