8000330: (fc) FileChannel.truncate issues when given size > file size
Alan.Bateman at oracle.com
Sun Nov 4 02:57:28 PST 2012
On 03/11/2012 22:09, Jeff Hain wrote:
> >The webrev with the proposed changes is here:
> position0(fd, p) is called even if position didn't change
> (was already the case before).
This is necessary because truncating the file can change the position,
Windows in particular. It could re-factored to deal with platform
specific behavior or the platform implementations could be changed to
reset the position but it hardly seems worth it.
> Also the exception message could be "Negative size"
> for homogeneity with map method.
This make sense - thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nio-dev