Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8300977 Retire java.io.ExpiringCache
  3. JDK-8309215

Release Note: `java.io.File`'s Canonical Path Cache Is Removed

    XMLWordPrintable

Details

    Description

      `java.io.File` has historically cached canonical paths, and part paths, to help the performance of the `File::getCanonicalFile` and `File::getCanonicalPath` when running with a `SecurityManager` set. The cache had correctness issues in environments with symbolic links and has been disabled by default since JDK 12. The cache has been removed in this release, along with the system properties `sun.io.useCanonCaches` and `sun.io.useCanonPrefixCache`. Setting these properties no longer has any effect.

      Attachments

        Activity

          People

            pminborg Per-Ake Minborg
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: