commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Rall <...@finemaltcoding.com>
Subject Re: [VOTE] RESULT XxxUtils constructors
Date Fri, 16 Aug 2002 00:21:20 GMT
"Michael A. Smith" <mas@apache.org> writes:

> On Thu, 15 Aug 2002, robert burrell donkin wrote:
> > i'm not a velocity expert (i know about StringUtils because ages ago i did 
> > quite a bit of source generation with texen and contributed some patches 
> > to that class) but i suspect that since the  runtime type of the method 
> > returns are null, it won't work.
> 
> I suppose it depends on how velocity is implemented.  If it saves the 
> type information which it knows from the method call, than it should be 
> able to determine the static methods and use "null" as the object ot 
> execute the methods on (which is exactly how you use reflection to 
> execute a static method iirc).  If, however, velocity doesn't save the 
> method return typing information (possibly by just passing around the 
> results from "$foo.string" rather than keeping the call info from 
> $foo.string along with the return), then Paul's method won't work. 

Yes, sorry, all along I was just looking at the interface and
(apparently wrongly) assuming those methods would return actual
instances.  Duh.  It doesn't work if a null reference is returned.
-- 

Daniel Rall <dlr@finemaltcoding.com>

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message