snichol 2003/02/10 11:08:54 Modified: java/src/org/apache/soap/util/xml NSStack.java Log: Fix an ArrayIndexOutOfBoundsException in getPredefinedNamespace when the array grows. Revision Changes Path 1.8 +2 -1 xml-soap/java/src/org/apache/soap/util/xml/NSStack.java Index: NSStack.java =================================================================== RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/util/xml/NSStack.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- NSStack.java 18 Nov 2002 15:55:11 -0000 1.7 +++ NSStack.java 10 Feb 2003 19:08:54 -0000 1.8 @@ -133,7 +133,8 @@ String[] newnamespace = new String[length * 2]; System.arraycopy(predefinedNamespaces, 0, newnamespace, 0, length); for (int i=0; i<length; i++) - predefinedNamespaces[i+length] = NSPREFIX + (i+length+1); + newnamespace[i+length] = NSPREFIX + (i+length+1); + predefinedNamespaces = newnamespace; } return predefinedNamespaces[nsCount]; }