--- Jesse Glick <[EMAIL PROTECTED]> wrote:

> 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.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4338871

> Normal
> application code 
> should not have to go around making special
> low-level calls like this. 

Now, Jesse, that's all well and good to say, but I
find it hard to believe you have spent several years
working on NetBeans without having had to use
workarounds to accommodate JRE limitations for the
good of your product.

> Anyway excessive calls to sync() are likely to be
> bad for typical 
> performance.
> 
That's possible, dunno.  :) But only at close()?

-Matt

> -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]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to