You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Erik de Bruin (JIRA)" <ji...@apache.org> on 2013/11/20 00:17:22 UTC

[jira] [Resolved] (FLEX-33918) Unknown type error generated for known type

     [ https://issues.apache.org/jira/browse/FLEX-33918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Erik de Bruin resolved FLEX-33918.
----------------------------------

    Resolution: Fixed

> Unknown type error generated for known type
> -------------------------------------------
>
>                 Key: FLEX-33918
>                 URL: https://issues.apache.org/jira/browse/FLEX-33918
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>         Environment: Mac OS X
>            Reporter: Peter Ent
>            Assignee: Erik de Bruin
>
> import org.apache.flex.html.staticControls.List;
> …
> for(var i:int=0; i < columns.length; i++) {
>     var column:List = columns[i];
> I get this error while compiling:
> /Users/pent/Documents/Apache Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/beads/DataGridView.js:121: WARNING - Bad type annotation. Unknown type List
>     var /** @type {List} */ column = this.columns[i];
>                    ^
> What's funny about this last error is that I also have this ActionScript code which does not produce an error:
> for(var i:int=0; i < pm.columnLabels.length; i++) {
>     var column:List = new SimpleList();
> The JavaScript code generated for these statements is:
> for (var /** @type {number} */ i = 0; i < pm.get_columnLabels().length; i++) {
>     var /** @type {org.apache.flex.html.staticControls.List} */ column = new org.apache.flex.html.staticControls.SimpleList();



--
This message was sent by Atlassian JIRA
(v6.1#6144)