RFR [8055915]: (ch) FileDispatcherImpl.truncate0 should use SetFileInformationByHandle [win]

Ivan Gerasimov ivan.gerasimov at oracle.com
Mon Aug 25 14:37:57 UTC 2014


Hello!

It is a proposal to reimplement FileDispatcherImpl.truncate0 with a 
single call to SetFileInformationByHandle().
The later is available on Windows starting with Vista & Server 2008 [1].
The code should be buildable on XP & Server 2003.

The existing test java/nio/channels/AsynchronousFileChannel/Basic.java 
was used to verify the functionality isn't broken.

BUGURL: https://bugs.openjdk.java.net/browse/JDK-8055915
WEBREV: http://cr.openjdk.java.net/~igerasim/8055915/0/webrev/

[1] 
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365539(v=vs.85).aspx

Sincerely yours,
Ivan


More information about the nio-dev mailing list