Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Windows
Description
On JDK 11 the result has been cached with in JVM.
Since JDK 12 the result is not cached anymore by default (See https://bugs.openjdk.java.net/browse/JDK-8207005) and now very slow on windows.
For org.apache.maven.shared.utils.io.FileUtils.copyFile(File, File)
please use java.nio.file.Files.isSameFile(Path, Path) instead.
note: it's needed to call file.exists() before using Files.isSameFile() or catch NoSuchFileException
@see
for a similar fix.
Here is a screenshot of sampling eclipse showing getCanonicalPath() as a hotspot:
Attachments
Attachments
Issue Links
- links to