8156868: MethodHandles.zero(Class) doc issues
authormhaupt
Thu, 02 Jun 2016 14:28:16 +0200
changeset 38774 b2ca0c2ec115
parent 38773 2603fccd1477
child 38775 dbe4fab1ee03
8156868: MethodHandles.zero(Class) doc issues Reviewed-by: psandoz, mhaupt
jdk/src/java.base/share/classes/java/lang/invoke/MemberName.java
jdk/src/java.base/share/classes/java/lang/invoke/MethodHandle.java
jdk/src/java.base/share/classes/java/lang/invoke/MethodHandles.java
jdk/src/java.base/share/classes/jdk/internal/misc/Unsafe.java
jdk/src/jdk.unsupported/share/classes/sun/misc/Unsafe.java
--- a/jdk/src/java.base/share/classes/java/lang/invoke/MemberName.java	Wed Jun 01 15:28:05 2016 -0700
+++ b/jdk/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/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandle.java	Wed Jun 01 15:28:05 2016 -0700
+++ b/jdk/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/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandles.java	Wed Jun 01 15:28:05 2016 -0700
+++ b/jdk/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/jdk/src/java.base/share/classes/jdk/internal/misc/Unsafe.java	Wed Jun 01 15:28:05 2016 -0700
+++ b/jdk/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/jdk/src/jdk.unsupported/share/classes/sun/misc/Unsafe.java	Wed Jun 01 15:28:05 2016 -0700
+++ b/jdk/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() {