commit | a990ad5c834bd3292f8f4c5e45c7ff117ffae5ec | [log] [tgz] |
---|---|---|
author | Neil Fuller <nfuller@google.com> | Mon Jan 27 15:27:14 2014 +0000 |
committer | Neil Fuller <nfuller@google.com> | Mon Jan 27 18:37:13 2014 +0000 |
tree | 9d4a85711dd96aba4ba847e8392f227c724ffaa6 | |
parent | fff149a4eaa55e9eacddd22a386569b863092973 [diff] |
Fixing FileChannel.truncate() / position() According to the docs, after calling truncate(x), if position() > x, position() should be made to equal x. Note: It is to be set to x, not to the actual size of the file, since truncate() doesn't actually grow the file. Subsequent writes will grow the file to position(). Bug: 12757843 Change-Id: I5df1fbd59f1a8610bc60575dfa7f1396baf3ed47