7036251: Correct SQLPermission constructor javadocs for permission target names
Reviewed-by: alanb
--- a/jdk/src/share/classes/java/sql/SQLPermission.java Tue Apr 12 16:09:17 2011 -0700
+++ b/jdk/src/share/classes/java/sql/SQLPermission.java Wed Apr 13 11:21:36 2011 -0400
@@ -116,11 +116,11 @@
/**
* Creates a new <code>SQLPermission</code> object with the specified name.
- * The name is the symbolic name of the <code>SQLPermission</code>; currently,
- * the only name allowed is "setLog".
+ * The name is the symbolic name of the <code>SQLPermission</code>.
*
* @param name the name of this <code>SQLPermission</code> object, which must
- * be <code>setLog</code>
+ * be either {@code setLog}, {@code callAbort}, {@code setSyncFactory},
+ * or {@code setNetworkTimeout}
* @throws NullPointerException if <code>name</code> is <code>null</code>.
* @throws IllegalArgumentException if <code>name</code> is empty.
@@ -134,10 +134,11 @@
* Creates a new <code>SQLPermission</code> object with the specified name.
* The name is the symbolic name of the <code>SQLPermission</code>; the
* actions <code>String</code> is currently unused and should be
- * <code>null</code>.
+ * <code>null</code>.
*
* @param name the name of this <code>SQLPermission</code> object, which must
- * be <code>setLog</code>
+ * be either {@code setLog}, {@code callAbort}, {@code setSyncFactory},
+ * or {@code setNetworkTimeout}
* @param actions should be <code>null</code>
* @throws NullPointerException if <code>name</code> is <code>null</code>.
* @throws IllegalArgumentException if <code>name</code> is empty.