You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/05/27 15:47:19 UTC

DO NOT REPLY [Bug 35106] New: - endElement method in ResponseWrapper closes writer.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35106>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35106

           Summary: endElement method in ResponseWrapper closes writer.
           Product: Struts
           Version: Unknown
          Platform: Other
        OS/Version: other
            Status: NEW
          Keywords: PatchAvailable
          Severity: minor
          Priority: P4
         Component: Shale
        AssignedTo: dev@struts.apache.org
        ReportedBy: shane@cedar.com.au


[Shale] The endElement method in org.apache.shale.remote.ResponseWrapper closes
the writer, preventing further use of the ResponseWrapper.  The endElement
method should be calling close(), rather than writer.close(), patch follows.

Index: ResponseWrapper.java
> ===================================================================
--- ResponseWrapper.java    (revision 177960)
+++ ResponseWrapper.java    (working copy)
@@ -259,7 +259,7 @@

         if (open) {
             writer.write("/");
-            writer.close();
+            close();
         } else {
             writer.write("</");
             writer.write(name);

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org