approved

On Tue, Sep 21, 2010 at 10:34 AM, P T Withington <[email protected]> wrote:

> Change ptw-20100921-0Mf by [email protected] on 2010-09-21 10:30:35 EDT
>    in /Users/ptw/OpenLaszlo/trunk-2/test
>    for http://svn.openlaszlo.org/openlaszlo/trunk/test
>
> Summary: Don't stack trace on wrong argument count to setAttribute
>
> Bugs Fixed: LPP-9347 sw9 compiler will crash if super.setAttribute doesn't
> have a second arg
>
> Technical Reviewer: [email protected] (pending)
> QA Reviewer: [email protected] (pending)
>
> Details:
>    setAttribute optimizer should pattern-match on args, otherwise
>    don't optimize and let the back-end sort it out.
>
> Tests:
>    Test case from bug now says:
>
>        Compilation errors occurred:
>        org.openlaszlo.sc.CompilerError: lpp-9347.lzx: 11: Error: Incorrect
> number of arguments.  Expected 2, in line: super.setAttribute("bar")
>
> Files:
> M       WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java
> M       WEB-INF/lps/server/src/org/openlaszlo/sc/CommonGenerator.java
>
>
> Changeset:
> http://svn.openlaszlo.org/openlaszlo/patches/ptw-20100921-0Mf.tar
>



-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to