flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piotr Zarzycki (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-33918) Unknown type error generated for known type
Date Tue, 03 May 2016 06:59:12 GMT

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

Piotr Zarzycki updated FLEX-33918:
----------------------------------
    Fix Version/s: Apache FalconJX 0.6.0

> 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
>             Fix For: Apache FalconJX 0.6.0
>
>
> 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.3.4#6332)

Mime
View raw message