< prev index next >

src/java.base/windows/classes/sun/nio/fs/WindowsChannelFactory.java

Print this page
*** 164,12 ***
              throw new IllegalArgumentException("READ + APPEND not allowed");
          if (flags.append && flags.truncateExisting)
              throw new IllegalArgumentException("APPEND + TRUNCATE_EXISTING not allowed");
  
          FileDescriptor fdObj = open(pathForWindows, pathToCheck, flags, pSecurityDescriptor);
!         return FileChannelImpl.open(fdObj, pathForWindows, flags.read,
!                 flags.write, flags.direct, null);
      }
  
      /**
       * Open/creates file, returning AsynchronousFileChannel to access the file
       *
--- 164,12 ---
              throw new IllegalArgumentException("READ + APPEND not allowed");
          if (flags.append && flags.truncateExisting)
              throw new IllegalArgumentException("APPEND + TRUNCATE_EXISTING not allowed");
  
          FileDescriptor fdObj = open(pathForWindows, pathToCheck, flags, pSecurityDescriptor);
!         return FileChannelImpl.open(fdObj, pathForWindows, flags.read, flags.write,
!                 (flags.sync || flags.dsync), flags.direct, null);
      }
  
      /**
       * Open/creates file, returning AsynchronousFileChannel to access the file
       *
< prev index next >