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

File.renameTo(File) should use MoveFileExW (win)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • core-libs
    • x86
    • windows_2000

      It looks like renameTo on Windows is not necessarily atomic, in particular
      if the destination file exists there can be problems. MoveFileEx is
      supposedly the way to go and should give better results.

            alanb Alan Bateman
            svioletsunw Scott Violet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: