This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: java.sql.ResultSet.getObject() Kawa(?) bug
- From: Per Bothner <per at bothner dot com>
- To: "Hoehle, Joerg-Cyril" <Joerg-Cyril dot Hoehle at t-systems dot com>
- Cc: kawa at sources dot redhat dot com, brl-users at lists dot sourceforge dot net
- Date: Thu, 15 Aug 2002 23:56:19 -0700
- Subject: Re: java.sql.ResultSet.getObject() Kawa(?) bug
- References: <DFD875E85664D3118FA6080006277DE706169154@U8PN2.blf01.telekom.de>
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;
}