Matt Benson wrote:
[...] the Exception won't be thrown unless you explicitly sync() the FileDescriptor; otherwise the write will take place in cache and the
result on disk later will be a zero-byte file. [...]

So close() is not enough, you have to sync()? If true this sounds like a bug in the JRE that should be filed as such. Normal application code should not have to go around making special low-level calls like this. Anyway excessive calls to sync() are likely to be bad for typical performance.


-J.

--
Jesse Glick <mailto:[EMAIL PROTECTED]> x22801
NetBeans, Open APIs  <http://www.netbeans.org/>


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to