Re: Bug(?)

"Nikhil G. Daddikar" <[email protected]> Sat, 23 Jul 2005 07:32:58 +0530
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
Is there is a better way to get access to singletons? I access 
singletons as $Singleton() which is mapped to the getInstance static 
method. What I don't want to do is write context tools for each of these 
or put("singleton", Singleton.getInstance()) in the context.

Thanks.

Keats Kirsch wrote:

> This turned out to be a trivial fix to the FunctionVariable class.  
> I'll create a unit test and commit the fix this weekend.  I guess I 
> never expected folks to use functions this way, but there's no reason 
> not to allow it.
>
> Keats
>
> Keats Kirsch wrote:
>
>> Thanks for reporting this bug. I was able to reproduce this behavior 
>> using:
>>
>>    $HTMLEscape("My string").substring(0, 2)
>>
>> The result was "My string" instead of "My".  The substring just got 
>> ignored.  Very strange.
>> I will investigate.
>>
>> Keats
>>
>> Nikhil G. Daddikar wrote:
>>
>>> In WM 2.0 (release May 14 2005), if I do this:
>>>
>>> #set $tasks = $PMUtils().getTasks()
>>>
>>> then $tasks is set to the object that PMUtils() returns and not to 
>>> the list of tasks
>>>
>>> I think this is a bug, can some one confirm this?
>>
>>
>>
>>
>>
>
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Webmacro-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/webmacro-user



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click