[Laszlo-dev] Compiler bug

Henry Minsky henry.minsky at gmail.com
Fri Jun 2 16:14:27 EDT 2006


Here's a fix for this bug , for review

Summary: fix for compiler bug with event handlers

New Features:

Bugs Fixed: LPP-2130

Technical Reviewer: ptw

QA Reviewer: mdavis

Doc Reviewer:

Documentation:

Release Notes:

Details:

I had wanted to make it so if you say

<class foo>
   <event name="onbar"/>
</class>


You can then do

<foo onbar="Debug.write('hello! I got an onbar event!')"/>

and the compiler knows that "onbar" needs to be compiled as an event
handler, by
setting the attribute type of "onbar" to "EVENT".

But the code I had in the compiler did this for the <handler> tag  by
mistake
instead of <event>

test case: included in bug, also case above








On 6/2/06, Michael Gregor <mgregor at laszlosystems.com> wrote:
>
> Members,
>
>
> I have attached a test case that generates a compiler error.
>
> The error is seen in the file 'test_handlerBugWClass.lzx'.
>
> The error is - duplicate definition of attribute .onmousedown
>
> The error does not happen when the same code is not in a class and
> directly on the canvas.
>
> if I change the tag from handler - name to method - event, the error
> goes away.
>
> I will post a bug on JIRA...
>
> thanks,
>
> MG
>
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
>
>
>


-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20060602/a91faac3/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: changeset-42771.zip
Type: application/zip
Size: 8816 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20060602/a91faac3/changeset-42771-0001.zip


More information about the Laszlo-dev mailing list