You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ru...@apache.org on 2002/09/04 22:15:11 UTC
cvs commit: xml-axis/java/test/encoding TestDOM.java
rubys 2002/09/04 13:15:11
Modified: java/src/org/apache/axis/utils NSStack.java XMLUtils.java
java/test/encoding TestDOM.java
Log:
Performance improvement uncovered a bug
Revision Changes Path
1.29 +3 -3 xml-axis/java/src/org/apache/axis/utils/NSStack.java
Index: NSStack.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/NSStack.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- NSStack.java 20 Aug 2002 19:42:43 -0000 1.28
+++ NSStack.java 4 Sep 2002 20:15:10 -0000 1.29
@@ -140,9 +140,9 @@
public ArrayList cloneFrame() {
ArrayList clone = new ArrayList();
- topOfFrame();
-
- while (iterator <= top) clone.add(stack[iterator++]);
+ for (Mapping map=topOfFrame(); map!=null; map=next()) {
+ clone.add(map);
+ }
return clone;
}
1.67 +1 -1 xml-axis/java/src/org/apache/axis/utils/XMLUtils.java
Index: XMLUtils.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/utils/XMLUtils.java,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- XMLUtils.java 2 Sep 2002 13:37:33 -0000 1.66
+++ XMLUtils.java 4 Sep 2002 20:15:10 -0000 1.67
@@ -246,7 +246,7 @@
SAXParser parser = saxFactory.newSAXParser();
parser.getXMLReader().
setFeature("http://xml.org/sax/features/namespace-prefixes",
- true);
+ false);
return parser;
} catch (ParserConfigurationException e) {
log.error(JavaUtils.getMessage("parserConfigurationException00"), e);
1.14 +1 -1 xml-axis/java/test/encoding/TestDOM.java
Index: TestDOM.java
===================================================================
RCS file: /home/cvs/xml-axis/java/test/encoding/TestDOM.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- TestDOM.java 22 Jun 2002 16:40:56 -0000 1.13
+++ TestDOM.java 4 Sep 2002 20:15:11 -0000 1.14
@@ -121,7 +121,7 @@
SOAPEnvelope envelope = message.getSOAPEnvelope();
SOAPBodyElement bodyElement = (SOAPBodyElement)envelope.getBodyElements().elementAt(0);
MessageElement me = (MessageElement) bodyElement.getChildren().get(0);
- org.xml.sax.Attributes atts = me.getAttributes();
+ org.xml.sax.Attributes atts = me.getCompleteAttributes();
assertTrue(atts.getLength()==2);
}