Easy Commons

XMLOutputFactory not released when creating a new XMLStreamWriter

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.1.0
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    The XMLOutputFactory taked inside the block try of the method com.ebmwebsourcing.easycommons.xml.XMLOutputFactories.createXMLStreamWriter(OutputStream) is not released in the block finally and another XMLOutputFactory is taken.

    I think that:

    • the creation of the XMLStreamWriter should be move in the block try
    • in the block finally, the second takeXMLOutputFactory should be replaced by releaseXMLOutputFactory.
    Show
    The XMLOutputFactory taked inside the block try of the method com.ebmwebsourcing.easycommons.xml.XMLOutputFactories.createXMLStreamWriter(OutputStream) is not released in the block finally and another XMLOutputFactory is taken. I think that:
    • the creation of the XMLStreamWriter should be move in the block try
    • in the block finally, the second takeXMLOutputFactory should be replaced by releaseXMLOutputFactory.
  • Environment:
    -

People

Dates

  • Created:
    Tue, 24 Apr 2012 - 12:21:07 +0200
    Updated:
    Wed, 2 May 2012 - 11:30:29 +0200
    Resolved:
    Wed, 2 May 2012 - 11:30:29 +0200