The compiler names the method that computes the `reference="expression"` `get 
expression`.  So I am just trimming off the 'get ' part, so it looks more like 
the actual source code.  In swf10, the "pretty" name of the method gets lost, 
so I had to make this conditional.  In swf10, unfortunately, you only get the 
semi-anonymous name of the method.  Hopefully the rest of the information is 
enough to figure out where the problem is.

Also, this is just a temporary solution; just to make sure that you know why 
things aren't working, rather than silently failing.  We hope to make it 
actually work at some point.

On 2010-12-13, at 11:55, Henry Minsky wrote:

> Question, what is the substring() in  this line for?
> 
>  if (ref.indexOf('get ') == 0) { ref = ref.substring(4); }
> 
> 
> ?
> 
> 
> 
> On Mon, Dec 13, 2010 at 4:52 AM, P T Withington <[email protected]> wrote:
> 
>> Change ptw-20101213-Caf by [email protected] on 2010-12-13 04:47:06 EST
>>   in /Users/ptw/OpenLaszlo/trunk-devo
>>   for http://svn.openlaszlo.org/openlaszlo/trunk
>> 
>> Summary: Warn when handler reference cannot be resolved
>> 
>> Bugs Fixed:  LPP-9576 handler when reference does not exist erroneously
>> installs on self
>> 
>> Technical Reviewer: [email protected] (pending)
>> QA Reviewer: mdemmon (pending)
>> 
>> Details:
>>   LzMessage: Noticed in passing, don't infinite loop if you append a
>>   message to itself.
>> 
>>   LzDebug: Need to test for Function separately
>> 
>>   LzNode: In debug mode, warn when you cannot resolve a handler
>>   reference.  Don't install handlers whose references cannot be
>>   resolved.
>> 
>> Tests:
>>   Test case from bug.  Smokecheck, lztest, calendar, lzpix, amazon.
>> 
>> Files:
>> M       WEB-INF/lps/lfc/debugger/LzMessage.lzs
>> M       WEB-INF/lps/lfc/debugger/platform/swf9/LzDebug.as
>> M       WEB-INF/lps/lfc/core/LzNode.lzs
>> 
>> Changeset:
>> http://svn.openlaszlo.org/openlaszlo/patches/ptw-20101213-Caf.tar
>> 
> 
> 
> 
> -- 
> Henry Minsky
> Software Architect
> [email protected]


Reply via email to