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

Print this page
rev 6052 : [mq]: jdk.patch

*** 155,165 **** 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, flags.read, flags.write, flags.append, null); } /** * Open/creates file, returning AsynchronousFileChannel to access the file * --- 155,165 ---- 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.append, null); } /** * Open/creates file, returning AsynchronousFileChannel to access the file *