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

(fc) Cleanup in FileChannel/FileDispatcher native implementation [win]

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 9
    • None
    • core-libs
    • b33

        There can be different Windows API used in some places, which will make the code a bit cleaner.

        - GetFileSizeEx() instead of GetFileSize(),
        - SetFilePointerEx() vs SetFilePointer(),
        - Setting position through OVERLAPPED struct for ReadFile()/WriteFile().

        The already existing tests can be used to make sure nothing is broken with the change.

              igerasim Ivan Gerasimov
              igerasim Ivan Gerasimov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: