You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by di...@apache.org on 2007/06/19 04:12:12 UTC

svn commit: r548557 - /webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentImpl.java

Author: dims
Date: Mon Jun 18 19:12:12 2007
New Revision: 548557

URL: http://svn.apache.org/viewvc?view=rev&rev=548557
Log:
Fix for WSCOMMONS-198 - Problem creating 'comment' (when decrypting in Rampart)

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentImpl.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentImpl.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentImpl.java?view=diff&rev=548557&r1=548556&r2=548557
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentImpl.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentImpl.java Mon Jun 18 19:12:12 2007
@@ -317,6 +317,11 @@
                 break;
             }
 
+            case Node.COMMENT_NODE: {
+                newNode = createComment(importedNode.getNodeValue());
+                break;
+            }
+                
             case Node.DOCUMENT_FRAGMENT_NODE: {
                 newNode = createDocumentFragment();
                 // No name, kids carry value
@@ -327,10 +332,9 @@
             case Node.ENTITY_REFERENCE_NODE:
             case Node.ENTITY_NODE:
             case Node.PROCESSING_INSTRUCTION_NODE:
-            case Node.COMMENT_NODE:
             case Node.DOCUMENT_TYPE_NODE:
             case Node.NOTATION_NODE:
-                throw new UnsupportedOperationException("TODO");
+                throw new UnsupportedOperationException("TODO : Implement handling of org.w3c.dom.Node type == " + type );
 
             case Node.DOCUMENT_NODE: // Can't import document nodes
             default: { // Unknown node type



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