Robert Marcano created XMLBEANS-590:
---------------------------------------

             Summary: Cursor inside XMLError instances are never closed 
(disposed)
                 Key: XMLBEANS-590
                 URL: https://issues.apache.org/jira/browse/XMLBEANS-590
             Project: XMLBeans
          Issue Type: Improvement
          Components: Cursor
    Affects Versions: Version 5.0.2
            Reporter: Robert Marcano


There is a patch for making XmlCursor and AutoCloseable to land on trunk later, 
it takes into account that cursor used to instantiate XmlError must not be 
closed for example in a try-with-resources construct.

Maybe there is no problem of holding the cursors inside the XmlError 
indefinitely until the entire document is garbage collected, asking here about 
this, but I think that instead of XmlError using client code avoiding closing 
cursors, XmlError should create defensive copies of them in order to always 
client code close the cursors they create, for API consistency reasons.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to