[Laszlo-dev] For Review: Change 20080310-dda-1 Summary: SWF9: Create constructors for interstitial classes

Don Anderson dda at ddanderson.com
Mon Mar 10 19:14:09 PDT 2008


Change 20080310-dda-1 by dda at lester.local on 2008-03-10 09:47:18 EDT

    in /Users/dda/laszlo/src/svn/openlaszlo/branches/devildog

    for http://svn.openlaszlo.org/openlaszlo/branches/devildog


Summary: SWF9: Create constructors for interstitial classes


New Features:


Bugs Fixed:


Technical Reviewer: ptw (pending)

QA Reviewer: promanik (pending)

Doc Reviewer: (pending)


Documentation:


Release Notes:


Details:

    The use of mixins cause 'interstitial' classes to be created to

    simulate the mixin.  These classes sit in the inheritence tree

    between the class that uses the mixin and the 'real' super class.

    If the super class has a constructor with >0 args, and the mixin

    does not declare a constructor, then there will be compilation errors.

    This change automatically creates a constructor with the right

    number of args, etc. when there is not one in the mixin.


    If a mixin declares a constructor, it is obligated to call super

    with a compatible arg list for any super class it might be used with.


    Also this change fixes a blemish with multiple mixins.

     class C1 with M1,M2 extends S1

    used to create an interstitial named 'lzsc$mixin$M1$lzsc$mixin$M2$S1',

    now it creates the more compact, and originally intended name:

    'lzsc$mixin$M1$M2$S1'.


Tests:

    Regression: henry's hello (SWF9) + smokecheck(SWF8,DHTML)

    Functionality: Temporarily inserted a sample set of mixins, superclasses
and classes

    that use them into LzNode.js and made sure generated code was correct
and compiled.


Files:

M      WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9Generator.java


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080310-dda-1.tar



--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

voice: 617-547-7881
email: dda at ddanderson.com
www: http://www.ddanderson.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080310/fed7c747/attachment-0001.html


More information about the Laszlo-dev mailing list