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

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


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/


Sincerely yours,

More information about the nio-dev mailing list