jdk/src/java.base/share/classes/java/io/FilePermission.java
changeset 29986 97167d851fc4
parent 26219 1a19360ff122
child 31080 00a25f4c4d44
equal deleted inserted replaced
29985:9e7cc139fb5c 29986:97167d851fc4
   199             cpath = "";
   199             cpath = "";
   200             return;
   200             return;
   201         }
   201         }
   202 
   202 
   203         // store only the canonical cpath if possible
   203         // store only the canonical cpath if possible
   204         cpath = AccessController.doPrivileged(new PrivilegedAction<String>() {
   204         cpath = AccessController.doPrivileged(new PrivilegedAction<>() {
   205             public String run() {
   205             public String run() {
   206                 try {
   206                 try {
   207                     String path = cpath;
   207                     String path = cpath;
   208                     if (cpath.endsWith("*")) {
   208                     if (cpath.endsWith("*")) {
   209                         // call getCanonicalPath with a path with wildcard character
   209                         // call getCanonicalPath with a path with wildcard character