Zephyr closes the underlying OutputStream incorrectly

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: beta
    • Component/s: xml
    • b84
    • generic
    • generic

      The XMLStreamWriter.close method says:

        /**
         * Close this writer and free any resources associated with the
         * writer. This must not close the underlying output stream.
         * @throws XMLStreamException
         */
        public void close()
          throws XMLStreamException;

      but Zephyr implements it as:

          /**
           * Close the underlying stream to which data is being written.
           * @throws XMLStreamException if an error occurs while closing the stream.
           */
          public void close() throws XMLStreamException {
              fReuse = true;
              try{
                  fWriter.close();
              }catch(IOException ioexception){
                  throw new XMLStreamException(ioexception);
              }
          }

      ... which is against the spec.

            Assignee:
            Sunitha Reddy (Inactive)
            Reporter:
            Kohsuke Kawaguchi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: