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]

Re: Passing #!null as <java.lang.String>


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/


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