Relates :
|
The new FilePermission::implies implementation introduced in JDK-8164705 uses Path::relativize to find out if a path is inside another one. Path::relativize is quite complicated and since we don't need the actual result (we only need to see if the result is zero-or-more ".."), we can avoid using this method and write our own check.
|