|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
To unsubscribe from this list please visit:

You're unfortunately right, but the question is, what XStream can do about. If you provide a file or URL, XStream creates a javax.xml.transform.stream.StreamSource (required to resolve external references) which in turn is used as argument for the XMLInputFactory.createXMLStreamReader() creating the javax.xml.stream.XMLStreamReader. The XMLStreamReader will then open the file or URL on its own. When XStream is finished, it does now call since version 1.4.3 the XMLStreamReader.close() method.
However, to my big surprise, StAX 1.0 specification demands that the implementation does not close the underlaying input source. Unfortunately the XMLStreamReader instance is actually the only object, that knows the file handle/socket/... that has to be closed to release the system resource and it is not possible to access it from outside. :-/