flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Ent (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-33925) goog.require not being generated
Date Wed, 04 Dec 2013 19:52:35 GMT

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

Peter Ent updated FLEX-33925:
-----------------------------

    Attachment: datagridxcompile2.zip

I should not have to add a path to the FlexJSUI.swc - it is the 'framework' for this project.
Besides, it is accessible as many of the components have their package names discovered. For
example, in the same ActionScript source file I have a an import for org.apache.flex.core.IDataGridModel
and later refer to it as IDataGridModel. The JX compiler correctly adds a goog.require for
this class and puts its fully qualified name into the JavaScript code. Just like IBeadModel,
IDataGridModel's source is NOT in my project; it remains in the FlexJSUI.swc.

I've attached a new sample where the DataGrid components are now in a different package in
the project source so that they do not conflict with the components in FlexJSUI.

> goog.require not being generated
> --------------------------------
>
>                 Key: FLEX-33925
>                 URL: https://issues.apache.org/jira/browse/FLEX-33925
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>         Environment: Mac OS X
>            Reporter: Peter Ent
>            Assignee: Erik de Bruin
>         Attachments: CompilerExample.as, DataGridView.as, datagridxcompile.zip, datagridxcompile2.zip
>
>
> Attempting to compile ActionScript component into JavaScript. The compiler is not generating
a goog.require() statement.
> Error:
> /Users/pent/Documents/Apache Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/beads/DataGridView.js:84:
ERROR - variable IBeadModel is undeclared
>   var /** @type {org.apache.flex.core.IDataGridModel} */ sharedModel = org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadModel),
org.apache.flex.core.IDataGridModel);
>     
> ActionScript source (see org/apache/flex/html/staticControls/bead/DataGridView.js):
> import org.apache.flex.core.IBeadModel;
> ...
> var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as IDataGridModel;
> A goog.require() statement was generated for IDataGridModel but not IBeadModel.



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

Mime
View raw message