PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3060 *** shadow/3060 Thu Aug 9 09:53:21 2001 --- shadow/3060.tmp.18680 Thu Aug 9 10:13:40 2001 *************** *** 2,9 **** | xmlns:foo="foo" causes ArrayIndexOutOfBounds | +----------------------------------------------------------------------------+ | Bug #: 3060 Product: XalanJ2 | ! | Status: NEW Version: CurrentCVS | ! | Resolution: Platform: All | | Severity: Normal OS/Version: All | | Priority: Other Component: org.apache.xml.dtm | +----------------------------------------------------------------------------+ --- 2,9 ---- | xmlns:foo="foo" causes ArrayIndexOutOfBounds | +----------------------------------------------------------------------------+ | Bug #: 3060 Product: XalanJ2 | ! | Status: RESOLVED Version: CurrentCVS | ! | Resolution: FIXED Platform: All | | Severity: Normal OS/Version: All | | Priority: Other Component: org.apache.xml.dtm | +----------------------------------------------------------------------------+ *************** *** 32,34 **** --- 32,45 ---- </xsl:stylesheet> Causes an ArrayIndexOutOfBounds exception in SAX2DTM.getPrefix. + + ------- Additional Comments From [EMAIL PROTECTED] 2001-08-09 10:13 ------- + Committed SAX2DTM, revision 1.15, to solve this problem. Prefixes and + namespaceURIs are kept in the same Vector, m_prefixMappings. The entries are + stored as pairs of vector elements. The even elements contain the prefix and + the odd elements contain the URI. In two routines, getPrefix and endElement, + the appropriate prefix or URI was being located in the Vector using an + indexOf. However, in this case where the prefix and the URI were the same, the + routine was looking for the URI bug finding the prefix instead of the URI. It + tried tried to back up one to get the prefix and underflowed the Vector size. + Also adding Bugzilla3060 to bugzilla tests. \ No newline at end of file
