[Simple-support] Bug in Persister
Brought to you by:
niallg
|
From: Marco V. <ve...@zh...> - 2007-06-12 10:48:46
|
Hi all
Mike Quilleash has at 08.05.2007 "Bug in Persister" posted. I have
established the samething as he. The Input/Output streams are not be
closed after whose use.
For me I patched it as following:
public <T> T read(Class<? extends T> type, File source) throws Exception {
FileInputStream fis = new FileInputStream(source); // Patch: Close the
FileInputStream
try {
return (T)read(type, fis);
} finally {
fis.close();
}
}
The same I have done in the other reader methods and in the writer methods.
Do you plan to fix this in the next release?
Best Regards,
Marco
|