I'm hitting the same compiler issue as are other members of my team.
It is truly bizarre. Your suggestion to turn off -strict type checking
worked for me but leaves me nervous about what code is actually being
generated. I've examined the mxmlc generated files with -keep but they
look fine.

In my case the problem reproduces reliably ONLY on clean command line
(ANT) builds. Building clean or incrementally in Flex Builder works fine.

- I've performed tests to eliminate the Java VM version as the culprit
(forced command line builds to use the Flex Builder-installed VM & SDK).
- On one machine running Windows Vista my app (Picnik) builds w/o
errors. The builds that fail are on XP.

The class the compiler is having trouble with (NoTipTextInput) derives
from a custom class TextInputPlus, which derives from mx:TextInput.
Here's where it gets really crazy: If I change NoTipTextInput to
derive from TextInput directly the compile succeeds. But if I have it
derive from an EMPTY (no members) class TextInputPlus which in turn
derives from TextInput then it fails. WTF?

(the reported error)
     [exec]
C:\src\picnik.del\client\dialogs\RegisterHelper\OrderTab.mxml(25): 
Error: Implicit coercion of a value of t
ype controls:NoTipTextInput to an unrelated type Object.
     [exec]
     [exec]                     cardNumberSource="{_tiCardNumber}"
cardNumberProperty="text"
     [exec]
     [exec]
C:\src\picnik.del\client\dialogs\RegisterHelper\OrderTab.mxml(27): 
Error: Implicit coercion of a value of t
ype controls:NoTipTextInput to an unrelated type
mx.validators:IValidatorListener.
     [exec]
     [exec]                     cardNumberListener="{_tiCardNumber}"

--- In [email protected], "Sebastian Feher" <[EMAIL PROTECTED]> wrote:
>
> I'm having an issue when compiling a flex project.
> However it is not consistent, and the error goes away when doing a 
> clean build.
> 
> It always complains about this CatalogBroser.mxml
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:HDividedBox xmlns:mx="http://www.adobe.com/2006/mxml";
>   xmlns:view="mypackage.catalogmodule.view.*">
>       
>   <view:CatalogTreeView id="explorerTree" width="30%" />
>   <view:CatalogListView id="mainListView" width="70%" />
> 
> </mx:HDividedBox>
> 
> where CatalogTreeView.as extends ExplorerTreeView.mxml (not real 
> code).
> 
> the error:
> 
> Severity      Description     Resource        In Folder
>       Location        Creation Time   Id
> 2     1067: Implicit coercion of a value of type 
> mypackage.catalogmodule.view:CatalogTreeView to an unrelated type 
> Object.       CatalogBrowser.mxml     mypackage/catalogmodule/view    line 5
>       August 3, 2007 11:15:51 AM      7319
> 
> 2     1176: Comparison between a value with static type Object and 
> a possibly unrelated type 
> mypackage.catalogmodule.view:CatalogTreeView. CatalogBrowser.mxml
>       mypackage/catalogmodule/view    line 5  August 3, 2007 
> 11:15:51 AM   7320
> 
> The project has a source code base of >250 files ~500 KB as code, 75 
> mxml files ~500KB that compile in 25 swf file totaling ~20Mb (each 
> module ~500Kb).
> 
> Anyone knows if this is a memory related compiler issue?
> 
> Best Regards,
> Sebastian
>


Reply via email to