This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Passing #!null as <java.lang.String>
- To: kawa at sources dot redhat dot com
- Subject: Passing #!null as <java.lang.String>
- From: bmd at cs dot nwu dot edu (Brian M. Dennis)
- Date: 05 Sep 2001 07:15:47 -0500
I have a feeling this is obviously documented somewhere, but can't
seem to define the answer. What's the idiom for passing a #!null to a Java
procedure where the argument is of type java.lang.String? Kawa seems to
attempt to do a conversion and winds up null pointer dereferencing. e.g
#|kawa:1|# (as <java.lang.String> #!null)
java.lang.NullPointerException
at
gnu.bytecode.ObjectType.coerceFromObject(ObjectType.java:61)
at kawa.standard.convert.apply2(convert.java:23)
at gnu.mapping.Procedure2.applyN(Procedure2.java:49)
at gnu.expr.ApplyExp.eval(ApplyExp.java:38)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:38)
at kawa.Shell.run(Shell.java:85)
at kawa.Shell.run(Shell.java:35)
at kawa.Shell.run(Shell.java:19)
at kawa.repl.main(repl.java:356)
#|kawa:2|#
Things seem fine if the argument type is anything but a java.lang.String
This is a 1.6.70 version so maybe I'm behind the times.
Thanks for any assistance.
--
deviance is mandatory.
purchase a lifestyle or corporate hq will provide one.
--bri