You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/04/26 16:23:44 UTC

[Bug 1533] New - DOM_Node::cloneNode() does not clone the pointer value via setUserData()

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1533

*** shadow/1533	Thu Apr 26 07:23:44 2001
--- shadow/1533.tmp.11170	Thu Apr 26 07:23:44 2001
***************
*** 0 ****
--- 1,26 ----
+ +============================================================================+
+ | DOM_Node::cloneNode() does not clone the pointer value via setUserData()   |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1533                        Product: Xerces-C                |
+ |       Status: NEW                         Version: 1.4                     |
+ |   Resolution:                            Platform: Sun                     |
+ |     Severity: Normal                   OS/Version: Solaris                 |
+ |     Priority:                           Component: DOM                     |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-c-dev@xml.apache.org                                  |
+ |  Reported By: jmf@abysal.com                                               |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Why DOM_Node::cloneNode() does not clone the pointer assigned to a NOM_Node via 
+ DOM_Node::setUserData()?
+ 
+ I only use DOM_Node::setUserData() to mark a node with a value:
+ 
+ minode.setUserData( (void *) 1 );
+ DOM_Node minode_cloned = minode.cloneNode();
+ int processed = (int) minode_cloned.getUserData();
+ 
+ and when I clone this node, the getUserData() of the cloned node returns 
+ processed=0.

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