hehehe
I was working with an old version and now I got the latest daily build.

I also do not know what I am getting. Both trough the debugger and trough
introspection I just now it is a java.lang.Object!
=:o\

If you are surprised, then I suppose it is not meant to behave this way
and I am going to dig a bit more.


Thanks for the (as usual) very fast answer,
Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Geir Magnusson Jr.
> Sent: Monday, April 30, 2001 20:51
> To: [EMAIL PROTECTED]
> Subject: Re: Why can't I pass a null to my functions?
> 
> 
> Paulo Gaspar wrote:
> > 
> > It looks like the new Velocity replaces a null reference
> > with "something" before passing it as a parameter to a
> > method reference.
> > 
> > So, if I have:
> > 
> >   #if($tool.hasSomething($data.field))
> > 
> > and $data.field resolves to null, the hasSomething() method
> > gets something else (not the null).
> > 
> > WHY?
> 
> Huh?  What do you mean 'new', and what does it get?
> 
> geir
> 
> -- 
> Geir Magnusson Jr.                           [EMAIL PROTECTED]
> System and Software Consulting
> 
> Developing for the web?  See http://jakarta.apache.org/velocity/
> 

Reply via email to