-
Bug
-
Resolution: Done
-
Major
-
2.4.0.Final, 2.2.1.GA
-
None
-
Low
According to the JavaDoc for these methods, these methods are responsible for closing the input stream supplied as a parameter:
- Node.setProperty(String, InputStream)
- Property.setValue(InputStream)
- ValueFactory.createValue(InputStream)
- ValueFactory.createBinary(InputStream)
- Session.importXML(String, InputStream, int)
- Workspace.importXML(String, InputStream, int)
(Note that the JSR-283 specification doesn't appear to require this.)
ModeShape's implementation of all of these methods do close the stream, except for the two "importXML" methods. This needs to be corrected.