You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by go...@orange.fr on 2016/03/04 15:34:22 UTC
SAXSVGDocumentFactory.createDocument(String uri) opens an input
stream but doesn't close it
Hi
Batik opens an input stream here:
https://github.com/apache/batik/blob/trunk/batik-anim/src/main/java/org/apache/batik/anim/dom/SAXSVGDocumentFactory.java#L158
It could close it somewhere, typically here:
https://github.com/apache/batik/blob/trunk/batik-anim/src/main/java/org/apache/batik/anim/dom/SAXSVGDocumentFactory.java#L208
I would use a try/finally block. I cannot fill a bug report because JIRA hasn't sent me any email to reset my account and I can't create a new one with this email address :s
Best regards.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org