ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1338886 - in /webservices/axiom/branches/CHECK_PARENT_BUG/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom: SOAPElement.java SOAPHeaderBlockImpl.java
Date Tue, 15 May 2012 20:57:59 GMT
Author: veithen
Date: Tue May 15 20:57:58 2012
New Revision: 1338886

URL: http://svn.apache.org/viewvc?rev=1338886&view=rev
Log:
Only use checkParent with Axiom methods and be more lenient with DOM methods.

Modified:
    webservices/axiom/branches/CHECK_PARENT_BUG/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPElement.java
    webservices/axiom/branches/CHECK_PARENT_BUG/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderBlockImpl.java

Modified: webservices/axiom/branches/CHECK_PARENT_BUG/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPElement.java
URL: http://svn.apache.org/viewvc/webservices/axiom/branches/CHECK_PARENT_BUG/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPElement.java?rev=1338886&r1=1338885&r2=1338886&view=diff
==============================================================================
--- webservices/axiom/branches/CHECK_PARENT_BUG/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPElement.java
(original)
+++ webservices/axiom/branches/CHECK_PARENT_BUG/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPElement.java
Tue May 15 20:57:58 2012
@@ -80,7 +80,7 @@ public abstract class SOAPElement extend
     protected void setParent(OMContainer element, boolean useDomSemantics) {
         super.setParent(element, useDomSemantics);
 
-        if (element instanceof OMElement) {
+        if (!useDomSemantics && element instanceof OMElement) {
             checkParent((OMElement) element);
         }
     }

Modified: webservices/axiom/branches/CHECK_PARENT_BUG/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderBlockImpl.java
URL: http://svn.apache.org/viewvc/webservices/axiom/branches/CHECK_PARENT_BUG/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderBlockImpl.java?rev=1338886&r1=1338885&r2=1338886&view=diff
==============================================================================
--- webservices/axiom/branches/CHECK_PARENT_BUG/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderBlockImpl.java
(original)
+++ webservices/axiom/branches/CHECK_PARENT_BUG/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPHeaderBlockImpl.java
Tue May 15 20:57:58 2012
@@ -140,7 +140,7 @@ public abstract class SOAPHeaderBlockImp
     protected void setParent(OMContainer element, boolean useDomSemantics) {
         super.setParent(element, useDomSemantics);
     
-        if (element instanceof OMElement) {
+        if (!useDomSemantics && element instanceof OMElement) {
             checkParent((OMElement) element);
         }
     }



Mime
View raw message