Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8177969

Faster FilePermission::implies by avoiding the use of Path::relativize

    XMLWordPrintable

Details

    • b166
    • Not verified

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

                weijun Weijun Wang
                weijun Weijun Wang
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: