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/11 10:21:33 UTC
[Bug 1303] New - AttrImpl::setValue with null argument
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1303
*** shadow/1303 Wed Apr 11 01:21:33 2001
--- shadow/1303.tmp.5401 Wed Apr 11 01:21:33 2001
***************
*** 0 ****
--- 1,37 ----
+ +============================================================================+
+ | AttrImpl::setValue with null argument |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1303 Product: Xerces-C |
+ | Status: NEW Version: 1.4 |
+ | Resolution: Platform: All |
+ | Severity: Normal OS/Version: All |
+ | Priority: Component: DOM |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-c-dev@xml.apache.org |
+ | Reported By: konst@sirena2000.ru |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ > DTest failed in the following way :
+ >
+ > konst@[numa]://...bin>./DTest
+ > Warning!!! DOM_Attr's 'setValue' to 'null' method failed to work properly!
+ >
+ > *****The DOM_Attr method calls listed above failed, all others worked
+ +correctly.*****
+ > Warning!!! DOM_Attr's 'setValue' to 'null' method failed to work properly!
+
+
+ I think I found a bug in AttrImpl::setValue in src/dom/AttrImpl.cpp.
+ If its argument is an empty string (one that constructed
+ by DOMString(0)) than it does nothing and
+ attribute retains its previos value (in case of DTest it is "Reset Value")
+
+ The bug is clear from the source code.
+
+ this happend to me on DYNIX/ptx numa 4.0 V4.4.7 i386
+ with gcc 2.95.3
+ and Linux with gcc 2.95.2
+ but I think it doesn't matter
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org