You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Maxime Cowez (JIRA)" <ji...@apache.org> on 2013/02/19 10:55:12 UTC

[jira] [Commented] (FLEX-33404) Compile error with Apache Flex 4.9 and not Adobe 4.1

    [ https://issues.apache.org/jira/browse/FLEX-33404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13581169#comment-13581169 ] 

Maxime Cowez commented on FLEX-33404:
-------------------------------------

When I compile your test case with 4.9 the compiler gives me a clear message of what's wrong with the code:
The skin part type 'spark.components:TabBar' must be assignable to '*'.

So you just replace that '*' with 'Object' and it'll compile just fine.
That said, I would tend to be more specific when defning the types of SkinParts: if you have absolutely no idea what kind of visual component your skinpart will be, the most generic interface is IVisualElement.
                
> Compile error with Apache Flex 4.9 and not Adobe 4.1
> ----------------------------------------------------
>
>                 Key: FLEX-33404
>                 URL: https://issues.apache.org/jira/browse/FLEX-33404
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Skinning
>    Affects Versions: Apache Flex 4.9.0
>         Environment: WinXP 32bit
>            Reporter: tom chiverton
>         Attachments: src.zip, test skin.fxp
>
>
> I'm trying to build a project that is fine with the Adobe 4.1A SDK using the Apache 4.9 SDK, but we have a Skin that says
>     <fx:Metadata>
>         [HostComponent("com.ev.global.view.components.Dashboard")]
>     </fx:Metadata>
> Adding CDATA inside the Metadata doesn't appear to change things. 
> Attached is a reproducible test case - this compiles out of the box with the Adobe 4.1 compiler, but throws an error with the Apache 4.9 release.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira