You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sc...@apache.org on 2007/07/16 22:07:32 UTC

svn commit: r556714 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/JAXBBlockImpl.java

Author: scheu
Date: Mon Jul 16 13:07:30 2007
New Revision: 556714

URL: http://svn.apache.org/viewvc?view=rev&rev=556714
Log:
Contributor:Rich Scheuerle
Quick fix to not close the parser when marshalling a JAXB Object

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/JAXBBlockImpl.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/JAXBBlockImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/JAXBBlockImpl.java?view=diff&rev=556714&r1=556713&r2=556714
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/JAXBBlockImpl.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/message/databinding/impl/JAXBBlockImpl.java Mon Jul 16 13:07:30 2007
@@ -129,7 +129,10 @@
 
             // Successfully unmarshalled the object
             JAXBUtils.releaseJAXBUnmarshaller(ctx.getJAXBContext(), u);
-            reader.close();
+            
+            // Don't close the reader.  The reader is owned by the caller, and it
+            // may contain other xml instance data (other than this JAXB object)
+            // reader.close();
             return jaxb;
         } catch (JAXBException je) {
             if (DEBUG_ENABLED) {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org