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. Thanks for the reviews! ------------- PR Comment: https://git.openjdk.org/jdk/pull/30597#issuecomment-4204390806
