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] [Created] (FLEX-34031) Compilation error when cross-compiling MXML containing IFactory property.
Date Wed, 08 Jan 2014 19:14:50 GMT
Peter Ent created FLEX-34031:
--------------------------------

             Summary: Compilation error when cross-compiling MXML containing IFactory property.
                 Key: FLEX-34031
                 URL: https://issues.apache.org/jira/browse/FLEX-34031
             Project: Apache Flex
          Issue Type: Bug
          Components: FalconJX
         Environment: Mac OS X
            Reporter: Peter Ent


See flexjs-as example, ListsTests for source code (sync to develop branch, git commit 457e2db).
This code compiles and runs for ActionScript, but cross-compiling for JavaScript produces
an error.

<basic:List> element with itemRenderer property (type: IFactory) causes compilation
error:

using FlashBuilder Project Files
FlashBuilder settings:
    -locale
    en_US
    -source-path+=/Users/pent/Documents/Apache Flex/ListsTests/src
    -compiler.accessible=true
    -output=/Users/pent/Documents/Apache Flex/ListsTests/bin-release/ListsTests.swf
    -library-path+=/Users/pent/Documents/Apache Flex/ListsTests/libs
    -compiler.mxml.children-as-data
    -compiler.binding-value-change-event-type=valueChange
    -compiler.library-path+=/Users/pent/Desktop/apache/ApacheFlexJS/frameworks/as/libs/FlexJSUI.swc
    -js-output-type=FLEXJS
    -closure-lib=/Users/pent/google/library
    -sdk-js-lib=/Users/pent/Desktop/apache/ApacheFlexJS/frameworks/js/FlexJS/src
    -fb
    /Users/pent/Documents/Apache Flex/ListsTests/src/ListsTests.mxml
Compiling file: /Users/pent/Documents/Apache Flex/ListsTests/bin/js-debug/ListsTests.js
Compiling file: /Users/pent/Documents/Apache Flex/ListsTests/bin/js-debug/models/ProductsModel.js
Compiling file: /Users/pent/Documents/Apache Flex/ListsTests/bin/js-debug/FirstView.js
java.lang.IllegalArgumentException: No handler specified for nodes of type 'MXMLFactory'
	at org.apache.flex.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:155)
	at org.apache.flex.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:145)
	at org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSEmitter.emitPropertySpecifier(MXMLFlexJSEmitter.java:1244)
	at org.apache.flex.compiler.internal.codegen.mxml.MXMLBlockWalker.visitPropertySpecifier(MXMLBlockWalker.java:250)
	at org.apache.flex.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:96)
	at org.apache.flex.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:145)
	at org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSEmitter.emitInstance(MXMLFlexJSEmitter.java:824)
	at org.apache.flex.compiler.internal.codegen.mxml.MXMLBlockWalker.visitInstance(MXMLBlockWalker.java:242)
	at org.apache.flex.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:87)
	at org.apache.flex.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:145)
	at org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSEmitter.emitArray(MXMLFlexJSEmitter.java:1307)
	at org.apache.flex.compiler.internal.codegen.mxml.MXMLBlockWalker.visitArray(MXMLBlockWalker.java:290)
	at org.apache.flex.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:63)
	at org.apache.flex.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:145)
	at org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSEmitter.emitPropertySpecifier(MXMLFlexJSEmitter.java:1244)
	at org.apache.flex.compiler.internal.codegen.mxml.MXMLBlockWalker.visitPropertySpecifier(MXMLBlockWalker.java:250)
	at org.apache.flex.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:96)
	at org.apache.flex.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:145)
	at org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSEmitter.emitDocument(MXMLFlexJSEmitter.java:145)
	at org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSBlockWalker.visitDocument(MXMLFlexJSBlockWalker.java:81)
	at org.apache.flex.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:75)
	at org.apache.flex.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:145)
	at org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSBlockWalker.visitFile(MXMLFlexJSBlockWalker.java:73)
	at org.apache.flex.compiler.internal.visitor.mxml.MXMLNodeSwitch.handle(MXMLNodeSwitch.java:81)
	at org.apache.flex.compiler.internal.codegen.mxml.MXMLBlockWalker.walk(MXMLBlockWalker.java:145)
	at org.apache.flex.compiler.internal.codegen.mxml.MXMLBlockWalker.visitCompilationUnit(MXMLBlockWalker.java:164)
	at org.apache.flex.compiler.internal.codegen.mxml.MXMLWriter.writeTo(MXMLWriter.java:66)
	at org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:398)
	at org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:262)
	at org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:220)
	at org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:182)





--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message