[ http://jira.codehaus.org/browse/JIBX-61?page=all ]
     
Dennis Sosnoski resolved JIBX-61:
---------------------------------

    Resolution: Won't Fix

I still don't see an issue here, so I'm marking this resolved/won't fix. If a 
marshalling operation fails you *can* reuse the writer without a problem as far 
as I can see, since all the data structures are properly cleaned up by the 
reset() operation. Naturally, the output stream you were writing previously 
won't be a valid XML document, and you need to discard the partial output 
document and set a new stream for the new marshalling operation - but that's 
just the nature of XML.

> XMLWriterBase's reset() does not reset namespace prefixes
> ---------------------------------------------------------
>
>          Key: JIBX-61
>          URL: http://jira.codehaus.org/browse/JIBX-61
>      Project: JiBX
>         Type: Bug
>   Components: core
>     Versions: CVS
>     Reporter: Chris Chen
>     Assignee: Dennis Sosnoski

>
>
> Say you are writing to an output stream with namespace prefixes.
> writer.startTagNamespaces(2, "stream", new int[] { 2, 3 }, new String[] { 
> "stream", "" });
> When you reset the writer either by calling reset() or setOutput(), the 
> namespace prefixes are not closed.  You must close the tag by calling 
> endTag() in order for the  namespaces to be closed properly.  However, it is 
> not guaranteed that the endTag() will be called for each corresponding 
> startTagNamespaces().  
> The situation can occur either if the stream is unexpectedly closed or if a 
> setOutput() is explicitly called before writing out the end tag.  In such 
> cases, the namespaces must be closed and resetted in order for the writer to 
> be reused.  Otherwise, the writer will always think those namespaces have 
> already been defined, thus making the xml writer not recyclable as intended.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to