Message6353

Author alex.gronholm
Recipients alex.gronholm
Date 2011-01-25.17:35:05
SpamBayes Score 0.00012576189
Marked as misclassified No
Message-id <1295976906.23.0.839203933005.issue1701@psf.upfronthosting.co.za>
In-reply-to
Content
If a file is opened and written to from the Event Dispatch Thread, the contents do not get flushed when the file is closed.

Attached is a simple Swing application that writes the TEST file when the button is pushed. It also writes a TEST2 file for comparison, but in the main thread. On Jython 2.5.2b2 and higher, TEST ends up as a 0 byte file, while in 2.5.2b1 and lower it ends up the same size as TEST2.
History
Date User Action Args
2011-01-25 17:35:06alex.gronholmsetrecipients: + alex.gronholm
2011-01-25 17:35:06alex.gronholmsetmessageid: <1295976906.23.0.839203933005.issue1701@psf.upfronthosting.co.za>
2011-01-25 17:35:06alex.gronholmlinkissue1701 messages
2011-01-25 17:35:06alex.gronholmcreate