flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Anderson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-35203) XML() class is broken javascript mode in 0.8 dev
Date Mon, 19 Dec 2016 17:18:58 GMT

    [ https://issues.apache.org/jira/browse/FLEX-35203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15761734#comment-15761734
] 

Joel Anderson commented on FLEX-35203:
--------------------------------------

Sorry, I missed the compliation warning here - I got used to ignoring the "goog" warnings.

{noformat}
host-0653jcamacminiprominicnet:TestFlex35203 joelanderson$ $FLEX_HOME/js/bin/mxmlc src/TestFlex35203.mxml

Using Falcon codebase: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/js/bin/../..
Using Flex SDK: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16
Compiling file: /Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/TestFlex35203.js
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/player/23.0/playerglobal.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/Binding.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/Charts.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/Collections.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/Core.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/CreateJS.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/DragDrop.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/Effects.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/Flat.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/Formatters.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/GoogleMaps.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/Graphics.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/HTML.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/HTML5.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/Language.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/MaterialDesignLite.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/Mobile.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/Network.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/Reflection.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/Storage.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/XML.swc
using SWC: /Users/joelanderson/Downloads/MoonshineSDKs/apache-flexjs-nightly-2016-12-16/frameworks/libs/jQuery.swc
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/TestFlex35203.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/html/beads/ContainerView.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/BeadViewBase.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/events/EventDispatcher.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/events/Event.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IFlexJSElement.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/utils/Language.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/events/IFlexJSEvent.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/events/IEventDispatcher.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IBeadView.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IBead.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IUIBase.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IChild.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IRenderedObject.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IStrand.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/UIBase.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/UIHTMLElementWrapper.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/ElementWrapper.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/events/BrowserEvent.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/events/ElementEvents.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/ValuesManager.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IBeadModel.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IStrandWithModel.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IBeadController.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/ILayoutChild.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IMeasurementBead.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IParentIUIBase.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IParent.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IStyleableObject.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/ITransformHost.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/geom/Rectangle.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/geom/Point.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/utils/CSSContainerUtils.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/utils/CSSUtils.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/utils/StringPadder.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IBeadLayout.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IContainerView.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IContentViewHost.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/ILayoutHost.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IViewport.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IViewportModel.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/html/beads/IBackgroundBead.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/html/beads/IBorderBead.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/html/supportClasses/ContainerContentArea.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IContentView.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/html/supportClasses/Viewport.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/geom/Size.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/html/beads/layouts/BasicLayout.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/ILayoutParent.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/html/beads/models/ViewportModel.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/utils/EffectTimer.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/events/ValueEvent.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IEffectTimer.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/SimpleStatesImpl.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/events/ValueChangeEvent.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/states/AddItems.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/states/ItemAndDescriptor.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IDocument.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/states/SetEventHandler.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/states/SetProperty.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/utils/MXMLDataInterpreter.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IContainer.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IMXMLDocument.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IStatesImpl.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IStatesObject.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/Application.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/ApplicationBase.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IFlexInfo.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/utils/Timer.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IInitialViewApplication.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IPopUpHost.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/ISWFApplication.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/SimpleCSSValuesImpl.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/utils/StringUtil.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/utils/StringTrimmer.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/ICSSImpl.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IValuesImpl.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/View.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/ViewBase.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/ContainerBase.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/ContainerBaseStrandChildren.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/core/IApplicationView.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/html/Container.js'
Dependencies calculated for '/Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/org/apache/flex/html/Label.js'
Dec 19, 2016 11:11:01 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: /Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/TestFlex35203.js:38:
WARNING - 'XML' used but not goog.require'd
  this.foo = new XML();
             ^

Dec 19, 2016 11:11:01 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: /Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/TestFlex35203.js:38:
WARNING - variable XML is undeclared
  this.foo = new XML();
                 ^

Dec 19, 2016 11:11:01 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: goog/array/array.js:619: WARNING - actual parameter 1 of goog.array.contains does
not match formal parameter
found   : (Array<T>|null)
required: (IArrayLike<?>|null|string)
  if (!goog.array.contains(arr, obj)) {
                           ^

Dec 19, 2016 11:11:01 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: goog/array/array.js:659: WARNING - actual parameter 1 of goog.array.indexOf does
not match formal parameter
found   : (Array<T>|null)
required: (IArrayLike<?>|null|string)
  if (arguments.length == 2 || (i = goog.array.indexOf(arr, opt_obj2)) < 0) {
                                                       ^

Dec 19, 2016 11:11:01 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: goog/array/array.js:662: WARNING - actual parameter 1 of goog.array.insertAt does
not match formal parameter
found   : (Array<T>|null)
required: (IArrayLike<?>|null)
    goog.array.insertAt(arr, obj, i);
                        ^

Dec 19, 2016 11:11:01 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: goog/array/array.js:1643: WARNING - actual parameter 1 of goog.array.forEach does
not match formal parameter
found   : Array<number>
required: (IArrayLike<?>|null|string)
  goog.array.forEach(index_arr, function(index) { result.push(arr[index]); });
                     ^

Dec 19, 2016 11:11:01 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: goog/events/listenermap.js:149: WARNING - actual parameter 1 of goog.array.removeAt
does not match formal parameter
found   : Array<goog.events.Listener>
required: (IArrayLike<?>|null)
    goog.array.removeAt(listenerArray, index);
                        ^

Dec 19, 2016 11:11:01 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: goog/events/listenermap.js:171: WARNING - actual parameter 1 of goog.array.remove
does not match formal parameter
found   : Array<goog.events.Listener>
required: (IArrayLike<goog.events.ListenableKey>|null)
  var removed = goog.array.remove(this.listeners[type], listener);
                                  ^

Dec 19, 2016 11:11:01 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: goog/labs/useragent/browser.js:233: WARNING - actual parameter 1 of goog.array.forEach
does not match formal parameter
found   : Array<Array<string>>
required: (IArrayLike<?>|null|string)
  goog.array.forEach(versionTuples, function(tuple) {
                     ^

Dec 19, 2016 11:11:01 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: goog/labs/useragent/engine.js:153: WARNING - actual parameter 1 of goog.array.find
does not match formal parameter
found   : Array<Array<string>>
required: (IArrayLike<?>|null|string)
  var pair = goog.array.find(tuples, function(pair) { return key == pair[0]; });
                             ^

Dec 19, 2016 11:11:01 AM com.google.javascript.jscomp.LoggerErrorManager printSummary
WARNING: 0 error(s), 10 warning(s), 96.68665992195405% typed
The project 'TestFlex35203' has been successfully compiled and optimized.
{noformat}

These look the most relevant for this error:
{noformat}
WARNING: /Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/TestFlex35203.js:38:
WARNING - 'XML' used but not goog.require'd
  this.foo = new XML();
             ^

Dec 19, 2016 11:11:01 AM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: /Users/joelanderson/Documents/Flex/temp_workspace/TestFlex35203/bin/js-debug/TestFlex35203.js:38:
WARNING - variable XML is undeclared
  this.foo = new XML();
{noformat}


> XML() class is broken javascript mode in 0.8 dev
> ------------------------------------------------
>
>                 Key: FLEX-35203
>                 URL: https://issues.apache.org/jira/browse/FLEX-35203
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FlexJS
>    Affects Versions: Apache FlexJS 0.7.0, Apache FlexJS 0.8.0
>            Reporter: Pan Li
>            Assignee: Alex Harui
>             Fix For: Apache FlexJS 0.8.0
>
>         Attachments: Test1.js, XMLError.png
>
>
> {code}
> 	<fx:Script>
> 		<![CDATA[
> 		
> 		var foo : XML = new XML();
> 			
> 		]]>
> 	</fx:Script>
> {code}
> above code result in runtime javascript error
>  Uncaught ReferenceError: XML is not defined
> the same code works in swf mode



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message