This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: compilation and runtime items under various JDKs
- To: "Robert D. Skeels" <athene at earthlink dot net>
- Subject: Re: compilation and runtime items under various JDKs
- From: Per Bothner <per at bothner dot com>
- Date: Sat, 29 Sep 2001 22:14:15 -0700
- CC: kawa <kawa at sourceware dot cygnus dot com>
- References: <B7DA3F15.48B%athene@earthlink.net>
Robert D. Skeels wrote:
>Kawa won't compile under JDK 1.1.8 here is the output where it fails:
>...
>ClassExp.java:278: Method add(gnu.bytecode.Method) not found in class
>java.util.Vector.
>
I fixed this (and a similar error in XQParser.java) by replacing the
call to add
with a call to addElement. Thanks for the bug report.
Index: ClassExp.java
===================================================================
RCS file: /cvs/kawa/kawa/gnu/expr/ClassExp.java,v
retrieving revision 1.9
diff -u -r1.9 ClassExp.java
--- ClassExp.java 2001/09/14 01:31:15 1.9
+++ ClassExp.java 2001/09/30 04:36:40
@@ -275,7 +275,7 @@
{
int count = vec.size();
if (count == 0 || ! vec.elementAt(count-1).equals(implMethod))
- vec.add(implMethod);
+ vec.addElement(implMethod);
}
else
{