You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/04/20 02:36:15 UTC

[Bug 1419] New - a serious bug in the included org.xml.sax.helpers.AttributesImpl

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

*** shadow/1419	Thu Apr 19 17:36:15 2001
--- shadow/1419.tmp.4219	Thu Apr 19 17:36:15 2001
***************
*** 0 ****
--- 1,29 ----
+ +============================================================================+
+ | a serious bug in the included org.xml.sax.helpers.AttributesImpl           |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1419                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.1                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Other                   |
+ |     Priority: Medium                    Component: Xalan                   |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xalan-dev@xml.apache.org                                     |
+ |  Reported By: thomas.de.smedt@pandora.be                                   |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ The source for org.xml.sax.helpers.AttributesImpl
+ (version $Id: AttributesImpl.java,v 1.1 2000/10/02 02:43:20 sboag Exp $)
+ has a serious typo in the implementation of void removeAttribute(int i) (line 
+ 433):
+     data[index] = null;
+ should be at least
+     data[index*5] = null;
+ but probably this line should be removed altogether (see latest release on 
+ http://www.megginson.com/SAX/index.html)
+ 
+ 
+ the effect of this error is that after a call to removeAttribute() a rather 
+ random property of one of the attributes is nullified.