[ https://issues.apache.org/jira/browse/FLEX-35196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Harui resolved FLEX-35196. ------------------------------- Resolution: Cannot Reproduce Assignee: Alex Harui Fix Version/s: Apache FalconJX 0.8.0 Alert.js in HTML.swc looks right to me. > [FlexJS] [FalconJX] Default method parameter that is static constant does not > emit fully-qualified class name > ------------------------------------------------------------------------------------------------------------- > > Key: FLEX-35196 > URL: https://issues.apache.org/jira/browse/FLEX-35196 > Project: Apache Flex > Issue Type: Bug > Components: FalconJX > Affects Versions: Apache FalconJX 0.8.0 > Reporter: Josh Tynjala > Assignee: Alex Harui > Fix For: Apache FalconJX 0.8.0 > > > The FlexJS Alert component defines the following method: > static public function show( text:String, parent:Object, title:String="", > flags:uint=Alert.OK ) : void > The final "flags" parameter is emitted like this: > flags = typeof flags !== 'undefined' ? flags : Alert.OK; > The constant should appear as org.apache.flex.html.Alert.OK instead. > The following runtime exception is thrown: > "ReferenceError: Alert is not defined\n at > Function.org.apache.flex.html.Alert.show > (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/Alert.js:137:50)\n > at AlertBasics.onAlert1 > (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/AlertBasics.js:105:30)\n > at AlertBasics.$EH0 > (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/AlertBasics.js:131:8)\n > at Function.goog.events.fireListener [as googFireListener] > (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/library/closure/goog/events/events.js:728:21)\n > at Object.org.apache.flex.core.HTMLElementWrapper.fireListenerOverride > [as fireListener] > (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/HTMLElementWrapper.js:48:50)\n > at HTMLButtonElement.goog.events.handleBrowserEvent_ > (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/library/closure/goog/events/events.js:852:22)\n > at HTMLButtonElement.<anonymous> > (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/library/closure/goog/events/events.js:277:38)" -- This message was sent by Atlassian JIRA (v6.3.4#6332)