This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: Passing #!null as <java.lang.String>
- To: bmd at cs dot nwu dot edu (Brian M. Dennis)
- Subject: Re: Passing #!null as <java.lang.String>
- From: brlewis at alum dot mit dot edu
- Date: 05 Sep 2001 08:54:59 -0400
- Cc: kawa at sources dot redhat dot com
- References: <m2bskpn898.fsf@colombia.cs.northwestern.edu>
bmd@cs.nwu.edu (Brian M. Dennis) writes:
> Things seem fine if the argument type is anything but a java.lang.String
I don't think I even need to look at the code to figure this out.
Kawa is smart about coercing to java.lang.String -- calling the
toString() method on the object. A one-line change in
gnu/bytecode/ObjectType.java just before line 61 to check if obj ==
null will probably fix this problem.
--
Bruce R. Lewis http://brl.sourceforge.net/