--- old/src/java.base/share/classes/java/net/URLPermission.java 2017-05-03 14:00:33.764849358 -0700 +++ new/src/java.base/share/classes/java/net/URLPermission.java 2017-05-03 14:00:33.640843994 -0700 @@ -72,9 +72,12 @@ * separated by '/' characters. path may also be empty. The path is specified * in a similar way to the path in {@link java.io.FilePermission}. There are * three different ways as the following examples show: - *
Example url | Description |
---|---|
http://www.oracle.com/a/b/c.html | *A url which identifies a specific (single) resource | *
* The '*' and '-' may only be specified in the final segment of a path and must be @@ -246,9 +250,12 @@ *
Some examples of how paths are matched are shown below: - *
this's path | p's path | match |
---|---|---|
/a/b | /a/b | yes |
/a/b/* | /a/b/c | yes |
/a/b/* | /a/b/c/d | no |
/a/b/- | /a/b/c/d/e | yes |
/a/b/- | /a/b/c/* | yes |
/a/b/* | /a/b/c/- | no |