jkesselm 01/10/18 13:36:40
Modified: java/src/org/xml/sax/helpers ParserAdapter.java
Log:
Java 1.1.8 back-compatability requires not using Java 1.2 collection calls.
(Still waiting for community consensus before abandoning 1.1)
Revision Changes Path
1.3 +3 -3 xml-xalan/java/src/org/xml/sax/helpers/ParserAdapter.java
Index: ParserAdapter.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/xml/sax/helpers/ParserAdapter.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ParserAdapter.java 2001/10/10 18:10:13 1.2
+++ ParserAdapter.java 2001/10/18 20:36:39 1.3
@@ -2,7 +2,7 @@
// Written by David Megginson, [EMAIL PROTECTED]
// NO WARRANTY! This class is in the public domain.
-// $Id: ParserAdapter.java,v 1.2 2001/10/10 18:10:13 curcuru Exp $
+// $Id: ParserAdapter.java,v 1.3 2001/10/18 20:36:39 jkesselm Exp $
package org.xml.sax.helpers;
@@ -565,7 +565,7 @@
} catch (SAXException e) {
if (exceptions == null)
exceptions = new Vector();
- exceptions.add(e);
+ exceptions.addElement(e); // add() not available in Java 1.1
atts.addAttribute("", attQName, attQName, type, value);
}
}
@@ -588,7 +588,7 @@
}
} else if (exceptions != null && errorHandler != null) {
for (int i = 0; i < exceptions.size(); i++)
- errorHandler.error((SAXParseException)(exceptions.get(i)));
+
errorHandler.error((SAXParseException)(exceptions.elementAt(i))); // get() not
available in Java 1.1
}
// OK, finally report the event.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]