Apparently, this is not fixed in the 2002-02-11 build. Will this be
included soon (it's a bit annoying)?
-----Original Message-----
From: Thomas B�rkel
Sent: Donnerstag, 7. Februar 2002 13:48
To: Axis Mailinglist
Subject: Found bug in Emitter, fix providedHI!
If the Emitter emits to a filename, it does not close the stream, leaving the file "in use" as long as the program runs or at least as long as no GC is being done.
org.apache.axis.wsdl.fromJava.Emitter, emit(), line 284.
Old:
XMLUtils.PrettyDocumentToStream(doc,
new FileOutputStream(new File(filename)));
Suggested fix:
FileOutputStream fos = new FileOutputStream(new File(filename));
XMLUtils.PrettyDocumentToStream(doc, fos);
fos.close();
Regards,
Thomas
