Title: Found bug in Emitter, fix provided

HI!

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

Reply via email to