Peter Ent created FLEX-33918:
--------------------------------
Summary: 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
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)