OpenJDK / aarch32-port / jdk9u / jdk
changeset 16413:db6aab84ca7c
8170900: Issue with FilePermission::implies for wildcard flag(-)
Reviewed-by: rriggs, xuelei
author | weijun |
---|---|
date | Thu, 05 Jan 2017 22:58:54 +0800 |
parents | 0521bec3379f |
children | d6258c65d466 |
files | src/java.base/share/classes/java/io/FilePermission.java |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/java.base/share/classes/java/io/FilePermission.java Thu Jan 05 22:37:52 2017 +0800 +++ b/src/java.base/share/classes/java/io/FilePermission.java Thu Jan 05 22:58:54 2017 +0800 @@ -532,11 +532,13 @@ * simple {@code npath} is inside a wildcard {@code npath} if and only if * {@code simple_npath.relativize(wildcard_npath)} is exactly "..", * a simple {@code npath} is recursively inside a wildcard {@code npath} - * if and only if {@code simple_npath.relativize(wildcard_npath)} - * is a series of one or more "..". An invalid {@code FilePermission} does - * not imply any object except for itself. An invalid {@code FilePermission} - * is not implied by any object except for itself or a {@code FilePermission} - * on {@literal "<<ALL FILES>>"} whose actions is a superset of this + * if and only if {@code simple_npath.relativize(wildcard_npath)} is a + * series of one or more "..". This means "/-" implies "/foo" but not "foo". + * <p> + * An invalid {@code FilePermission} does not imply any object except for + * itself. An invalid {@code FilePermission} is not implied by any object + * except for itself or a {@code FilePermission} on + * {@literal "<<ALL FILES>>"} whose actions is a superset of this * invalid {@code FilePermission}. Even if two {@code FilePermission} * are created with the same invalid path, one does not imply the other. *