JDK-6375901 : Zephyr closes the underlying OutputStream incorrectly
  • Type: Bug
  • Component: xml
  • Sub-Component: javax.xml.stream
  • Affected Version: beta
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-01-23
  • Updated: 2017-11-17
  • Resolved: 2006-05-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
6 b84Fixed
Related Reports
Relates :  
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;
        }catch(IOException ioexception){
            throw new XMLStreamException(ioexception);

... which is against the spec.

EVALUATION clear spec violation.