This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
AW: java.sql.ResultSet.getObject() Kawa(?) bug, (as <int> 1)
- From: "Hoehle, Joerg-Cyril" <Joerg-Cyril dot Hoehle at t-systems dot com>
- To: brl-users at lists dot sourceforge dot net, kawa at sources dot redhat dot com
- Date: Tue, 30 Jul 2002 12:14:46 +0200
- Subject: AW: java.sql.ResultSet.getObject() Kawa(?) bug, (as <int> 1)
Hi,
>Does this work?
>(invoke rs 'getObject (as <int> 1))
No.
BTW, Kawa-1.6.98 doc says:
as type value: ... Not supported for type to be a primitive type such as <int>.
Is that still correct?
#|kawa:8|# (invoke rs 'getObject (as <int> 1))
java.sql.SQLException: Column not found
at sun.jdbc.odbc.JdbcOdbcResultSet.findColumn(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcResultSet.getObject(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at gnu.expr.PrimProcedure.applyV(PrimProcedure.java:142)
at gnu.expr.GenericProc.applyN(GenericProc.java:61)
at gnu.kawa.reflect.Invoke.applyN(Invoke.java:149)
at gnu.kawa.reflect.Invoke.applyN(Invoke.java:49)
at gnu.mapping.Procedure.apply(Procedure.java:102)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:239)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:189)
at kawa.Shell.run(Shell.java:231)
at kawa.Shell.run(Shell.java:180)
at kawa.Shell.run(Shell.java:167)
at kawa.Shell.run(Shell.java:154)
at kawa.repl.main(repl.java:561)
I believe findColumn(String columnname)-> int would not be called for getObject(int), only for getObject(String).
I find the following differences strange:
#|kawa:9|# (invoke (as <int> 1) 'get-class)
class java.lang.Integer
#|kawa:10|# (let ((x :: <int> 1)) (invoke x 'get-class))
class gnu.math.IntNum
So I'm not sure a java.lang.Integer object really gets passed through to getObject().
Regards,
Jorg Hohle.