Change 20100528-hqm-s by [email protected] on 2010-05-28 22:59:10 EDT
    in /Users/hqm/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: warn about mismatched compiler options when linking an lzo against 
another lzo

New Features:

Bugs Fixed: LPP-9022

Technical Reviewer: ptw
QA Reviewer: max
Doc Reviewer: (pending)

Documentation:

Release Notes:

Overview:

When you build a swf10 lzo that is linked against other external
lzo's, it's safest to require that those lzo's have been compiled
with the same compiler options (specifically, the DEBUG flag).

This is because of the way that debug mode turns everything into
public declarations, causing the flex compiler to barf about the
signatures of methods changing when you try to override them from an
external library.

So this adds an explanatory error message when it finds a mismatch.

This requirement that compiler options match up is a bit of overkill,
since it is only when you try to subclass classes from the external
lzo that you would get errors.  But this is being conservative.

Details:
    

Tests:

+ compile an lzo for swf10 in debug mode, e.g., 
cd test/testlzo
lzc -c -g1 --runtime=swf10 extclass.lzx

then compile another lzo that subclasses stuff from it, in non-debug mode
lzc -c --runtime=swf10,dhtml --lzolibs extclass.lzo libdir/lib2.lzx

An compilation error should be thrown which describes the problem, displayed as 

  copyFromLZO expecting to find 'swc' in lzo archive 
/Users/hqm/openlaszlo/trunk/test/testlzo/extclass.lzo, but found 'swc-debug'; 
compiler options when building a (swf10) lzo must match those of any external 
lzo's it references
            

Files:
M       WEB-INF/lps/server/src/org/openlaszlo/compiler/SWF9Writer.java


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100528-hqm-s.tar

Reply via email to