JDK-8190919 :StaX buffers do not really close underlying buffers

Alan Bateman Alan.Bateman at oracle.com
Thu Nov 16 09:46:25 UTC 2017


On 16/11/2017 09:23, Srividya Shamaiah wrote:
>
> Hello,
>
> Am not sure to which mailing-list, I can send issues related to xml-jaxp. I
> found couple of xml-jaxp issues discussed in this mailing-list. Hence, am
> sending to this group. Please let me know the correct mailing-list if this
> is not the right one.
>
> I had a brief analysis on the subject issue and identified that the StaX
> buffers were not closed as the close method implemented for XMLStreamWriter
> in  XMLStreamWriterImpl.java does not call the close on the underlying
> writer and instead calls only flush()  on the writer.
>
> Interestingly the close call was in fact coded but commented out. We looked
> into the history of XMLStreamWriterImpl.java and found that the same code
> exists from Java 6 GA or even before. Hence, we could not find the bug
> which really introduced/commented out the close call.
>
There isn't a specific mailing list for XML issues so this mailing list 
is fine. I don't know the history of XMLStreamWriterImpl but its close 
implementation does look suspect.

-Alan.


More information about the core-libs-dev mailing list