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]
Other format: [Raw text]

Re: java.sql.ResultSet.getObject() Kawa(?) bug


Hoehle, Joerg-Cyril wrote:
> Now I'm trying to use
> #|kawa:42|# (invoke rs 'getObject 1)
> and I get one of the following 2 errors.

The attached patch may fix the problem.
--
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/
Index: PrimType.java
===================================================================
RCS file: /cvs/kawa/kawa/gnu/bytecode/PrimType.java,v
retrieving revision 1.10
diff -u -r1.10 PrimType.java
--- PrimType.java	5 Jun 2002 15:46:42 -0000	1.10
+++ PrimType.java	16 Aug 2002 06:45:19 -0000
@@ -189,7 +189,8 @@
           return -1;
         break;
       }
-    if (otherName.equals("java.lang.Object"))
+    if (otherName.equals("java.lang.Object")
+	|| other == tostring_type)
       return -1;
     return -2;
   }

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