This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: compilation and runtime items under various JDKs


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
       {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]