changeset 55415:5e1480a38a43

8220719: Allow other named NetPermissions to be used Reviewed-by: mullan, alanb
author chegar
date Sun, 17 Mar 2019 08:26:38 +0000
parents 1a18b8d56d73
children 7c23a4432610
files src/java.base/share/classes/java/net/NetPermission.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/net/NetPermission.java	Sat Mar 16 15:05:21 2019 -0700
+++ b/src/java.base/share/classes/java/net/NetPermission.java	Sun Mar 17 08:26:38 2019 +0000
@@ -43,7 +43,7 @@
  * signify a wildcard match. For example: "foo.*" and "*" signify a wildcard
  * match, while "*foo" and "a*b" do not.
  * <P>
- * The following table lists all the possible NetPermission target names,
+ * The following table lists the standard NetPermission target names,
  * and for each provides a description of what the permission allows
  * and a discussion of the risks of granting code the permission.
  *
@@ -158,6 +158,10 @@
    </tbody>
  * </table>
  *
+ * @implNote
+ * Implementations may define additional target names, but should use naming
+ * conventions such as reverse domain name notation to avoid name clashes.
+ *
  * @see java.security.BasicPermission
  * @see java.security.Permission
  * @see java.security.Permissions