On Tue, 7 Apr 2026 08:34:56 GMT, Daniel Jeliński <[email protected]> wrote:
> After a recent git pull I observed the following build failure: > > Exception in thread "main" java.nio.file.FileAlreadyExistsException: > ...\jdk\build\windows-x64\buildtools\gensrc\java.base.interim\jdk\internal\javac\PreviewFeature.java > at java.base/sun.nio.fs.WindowsFileCopy.copy(WindowsFileCopy.java:123) > at > java.base/sun.nio.fs.WindowsFileSystemProvider.copy(WindowsFileSystemProvider.java:279) > at java.base/java.nio.file.Files.copy(Files.java:1196) > at > previewfeature.SetupPreviewFeature.main(SetupPreviewFeature.java:79) > > `Files.copy` refuses to replace an existing file unless the > `StandardCopyOption.REPLACE_EXISTING` is passed. This PR adds that option. This pull request has now been integrated. Changeset: 7a11bdd2 Author: Daniel Jeliński <[email protected]> URL: https://git.openjdk.org/jdk/commit/7a11bdd25725749aa98a5fb865020b57f7c15869 Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod 8381722: Incremental build fails with FileAlreadyExistsException: PreviewFeature.java Reviewed-by: jpai, erikj, jlahoda ------------- PR: https://git.openjdk.org/jdk/pull/30597
