[jira] [Created] (FLEX-35208) DateField is not closable without selecting one date in javascript mode

2016-12-06 Thread Pan Li (JIRA)
Pan Li created FLEX-35208:
-

 Summary: DateField is not closable without selecting one date in 
javascript mode
 Key: FLEX-35208
 URL: https://issues.apache.org/jira/browse/FLEX-35208
 Project: Apache Flex
  Issue Type: Bug
  Components: FlexJS
Affects Versions: Apache FlexJS 0.7.0, Apache FlexJS 0.8.0
Reporter: Pan Li
Priority: Minor






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


[jira] [Created] (FLEX-35207) DateChooser doesn't highlight current select date

2016-12-06 Thread Pan Li (JIRA)
Pan Li created FLEX-35207:
-

 Summary: DateChooser doesn't highlight current select date
 Key: FLEX-35207
 URL: https://issues.apache.org/jira/browse/FLEX-35207
 Project: Apache Flex
  Issue Type: Bug
  Components: FlexJS
Affects Versions: Apache FlexJS 0.7.0, Apache FlexJS 0.8.0
Reporter: Pan Li
Priority: Minor






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


[jira] [Created] (FLEX-35206) Javascript isn't produced correctly when beads are not the first element of View

2016-12-06 Thread Pan Li (JIRA)
Pan Li created FLEX-35206:
-

 Summary: Javascript isn't produced correctly when beads are not 
the first element of View
 Key: FLEX-35206
 URL: https://issues.apache.org/jira/browse/FLEX-35206
 Project: Apache Flex
  Issue Type: Bug
  Components: FlexJS
Affects Versions: Apache FlexJS 0.7.0, Apache FlexJS 0.8.0
Reporter: Pan Li
Priority: Minor


{code}






 


{code}

Above code doesn't report error when building to html/javascript, but when 
running it doesn't show the label control.
In awf mode it runs without problem.

There could be other behavior when bead is not the top element and the UI has 
more elements or files.
Sometimes it build but when running it stop in javascript error. Sometimes it 
builds but after the normal building process the SDK reports "javascript" 
building error. I could not reproduce them with simple sample for now



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


[jira] [Created] (FLEX-35205) style properties are ignored in awf mode

2016-12-06 Thread Pan Li (JIRA)
Pan Li created FLEX-35205:
-

 Summary: style properties are ignored in awf mode
 Key: FLEX-35205
 URL: https://issues.apache.org/jira/browse/FLEX-35205
 Project: Apache Flex
  Issue Type: Bug
  Components: FlexJS
Affects Versions: Apache FlexJS 0.7.0, Apache FlexJS 0.8.0
Reporter: Pan Li
Priority: Blocker


{code}

{code}
above code shows a border around the label in javascript mode
the border is missing in awf mode



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


[jira] [Created] (FLEX-35204) DateChooser and DateField doesn't work in awf mode

2016-12-06 Thread Pan Li (JIRA)
Pan Li created FLEX-35204:
-

 Summary: DateChooser and DateField doesn't work in awf mode
 Key: FLEX-35204
 URL: https://issues.apache.org/jira/browse/FLEX-35204
 Project: Apache Flex
  Issue Type: Bug
  Components: FlexJS
Affects Versions: Apache FlexJS 0.8.0
Reporter: Pan Li


 doesn't display a full date chooser, the same code work in 
javascript mode



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


[jira] [Updated] (FLEX-35201) TileLayout is not working in javascript mode

2016-12-06 Thread Pan Li (JIRA)

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

Pan Li updated FLEX-35201:
--
Description: 
to reproduce the problem:
{code}

  































{code}

the controls are not aligned correctly. It can arrange controls more strangely 
if the UI is more coplex

  was:

to reproduce the problem:
{code}

  































{code}

the controls are not aligned correctly. It can arrange controls more strangely 
if the UI is more coplex


> TileLayout is not working in javascript mode
> 
>
> Key: FLEX-35201
> URL: https://issues.apache.org/jira/browse/FLEX-35201
> Project: Apache Flex
>  Issue Type: Bug
>  Components: FlexJS
>Affects Versions: Apache FlexJS 0.7.0, Apache FlexJS 0.8.0
>Reporter: Pan Li
>Priority: Critical
>
> to reproduce the problem:
> {code}
>   
> 
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> {code}
> the controls are not aligned correctly. It can arrange controls more 
> strangely if the UI is more coplex



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


[jira] [Created] (FLEX-35203) XML() class is broken javascript mode in 0.8 dev

2016-12-06 Thread Pan Li (JIRA)
Pan Li created FLEX-35203:
-

 Summary: 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
Priority: Blocker


{code}



{code}
above code result in runtime javascript error
 Uncaught ReferenceError: XML is not defined

the same code works in awf mode



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


[jira] [Created] (FLEX-35202) Label doesn't fire mouse events

2016-12-06 Thread Pan Li (JIRA)
Pan Li created FLEX-35202:
-

 Summary: Label doesn't fire mouse events
 Key: FLEX-35202
 URL: https://issues.apache.org/jira/browse/FLEX-35202
 Project: Apache Flex
  Issue Type: Bug
  Components: FlexJS
Affects Versions: Apache FlexJS 0.7.0, Apache FlexJS 0.8.0
Reporter: Pan Li


to reproduce the problem:
{code}




 

{code}

it was confirmed by independent tests in earlier report in dev list:
http://apache-flex-development.247.n4.nabble.com/FlexJS-click-event-of-Label-is-not-working-in-javascript-mode-tp56459.html



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


[jira] [Resolved] (FLEX-35200) Array.removeAt() is broken in javascript mode in 0.8 dev

2016-12-06 Thread Alex Harui (JIRA)

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

Alex Harui resolved FLEX-35200.
---
Resolution: Duplicate

> Array.removeAt() is broken in javascript mode in 0.8 dev
> 
>
> Key: FLEX-35200
> URL: https://issues.apache.org/jira/browse/FLEX-35200
> Project: Apache Flex
>  Issue Type: Bug
>  Components: FlexJS
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Pan Li
>Priority: Blocker
> Fix For: Apache FlexJS 0.8.0
>
>
> this function doesn't work in 0.8 dev.
> {code}
> 
>   
>   
> {code}
> the code is built to
> {code}
> testlang07dec06.prototype.foo = function() {
>   var /** @type {Array} */ a = new Array("a", "b", "c");
>   a.removeAt(2);
> };
> {code}
> but in earlier FlexJS sdk, it was built to 
> a.splice(2,1);



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


[jira] [Resolved] (FLEX-35199) Array.removeAt() is broken in javascript mode in 0.8 dev

2016-12-06 Thread Alex Harui (JIRA)

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

Alex Harui resolved FLEX-35199.
---
   Resolution: Cannot Reproduce
Fix Version/s: Apache FalconJX 0.8.0

Use of Array.removeAt/insertAt requires an SDK with Flash/AIR 19 or greater.  
Please verify that you have used the correct Flash/AIR version.

> Array.removeAt() is broken in javascript mode in 0.8 dev
> 
>
> Key: FLEX-35199
> URL: https://issues.apache.org/jira/browse/FLEX-35199
> Project: Apache Flex
>  Issue Type: Bug
>  Components: FlexJS
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Pan Li
>Priority: Blocker
> Fix For: Apache FalconJX 0.8.0
>
>
> this function doesn't work in 0.8 dev.
> {code}
> 
>   
>   
> {code}
> the code is built to
> {code}
> testlang07dec06.prototype.foo = function() {
>   var /** @type {Array} */ a = new Array("a", "b", "c");
>   a.removeAt(2);
> };
> {code}
> but in earlier FlexJS sdk, it was built to 
> a.splice(2,1);



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


[jira] [Created] (FLEX-35201) TileLayout is not working in javascript mode

2016-12-06 Thread Pan Li (JIRA)
Pan Li created FLEX-35201:
-

 Summary: TileLayout is not working in javascript mode
 Key: FLEX-35201
 URL: https://issues.apache.org/jira/browse/FLEX-35201
 Project: Apache Flex
  Issue Type: Bug
  Components: FlexJS
Affects Versions: Apache FlexJS 0.7.0, Apache FlexJS 0.8.0
Reporter: Pan Li
Priority: Critical



to reproduce the problem:
{code}

  































{code}

the controls are not aligned correctly. It can arrange controls more strangely 
if the UI is more coplex



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


[jira] [Resolved] (FLEX-35196) [FlexJS] [FalconJX] Default method parameter that is static constant does not emit fully-qualified class name

2016-12-06 Thread Alex Harui (JIRA)

 [ 
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\nat 
> 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. 
> (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)


[jira] [Resolved] (FLEX-35195) [FalconJX] "Generated byte code contains an operand stack underflow." when creating with in MXML

2016-12-06 Thread Alex Harui (JIRA)

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

Alex Harui resolved FLEX-35195.
---
   Resolution: Fixed
 Assignee: Alex Harui
Fix Version/s: Apache FalconJX 0.8.0

d36ecbce62e9082683a012598db67b17eca1b369

> [FalconJX] "Generated byte code contains an operand stack underflow." when 
> creating  with  in MXML
> --
>
> Key: FLEX-35195
> URL: https://issues.apache.org/jira/browse/FLEX-35195
> Project: Apache Flex
>  Issue Type: Bug
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Josh Tynjala
>Assignee: Alex Harui
> Fix For: Apache FalconJX 0.8.0
>
>
> Code to reproduce:
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic"
>   xmlns:local="*">
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>label="One"/>
>label="Two"/>
>label="Three"/>
>label="Four"/>
>label="Five"/>
>   
>   
>   
>   
>   
>   
>   
> 
> Result:
> Compilation fails with an error:
> Generated byte code contains an operand stack underflow.



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


[jira] [Created] (FLEX-35200) Array.removeAt() is broken in javascript mode in 0.8 dev

2016-12-06 Thread Pan Li (JIRA)
Pan Li created FLEX-35200:
-

 Summary: Array.removeAt() is broken in javascript mode in 0.8 dev
 Key: FLEX-35200
 URL: https://issues.apache.org/jira/browse/FLEX-35200
 Project: Apache Flex
  Issue Type: Bug
  Components: FlexJS
Affects Versions: Apache FlexJS 0.8.0
Reporter: Pan Li
Priority: Blocker
 Fix For: Apache FlexJS 0.8.0


this function doesn't work in 0.8 dev.
{code}



{code}

the code is built to
{code}
testlang07dec06.prototype.foo = function() {
  var /** @type {Array} */ a = new Array("a", "b", "c");
  a.removeAt(2);
};
{code}
but in earlier FlexJS sdk, it was built to 
a.splice(2,1);




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


[jira] [Created] (FLEX-35199) Array.removeAt() is broken in javascript mode in 0.8 dev

2016-12-06 Thread Pan Li (JIRA)
Pan Li created FLEX-35199:
-

 Summary: Array.removeAt() is broken in javascript mode in 0.8 dev
 Key: FLEX-35199
 URL: https://issues.apache.org/jira/browse/FLEX-35199
 Project: Apache Flex
  Issue Type: Bug
  Components: FlexJS
Affects Versions: Apache FlexJS 0.8.0
Reporter: Pan Li
Priority: Blocker


this function doesn't work in 0.8 dev.
{code}



{code}

the code is built to
{code}
testlang07dec06.prototype.foo = function() {
  var /** @type {Array} */ a = new Array("a", "b", "c");
  a.removeAt(2);
};
{code}
but in earlier FlexJS sdk, it was built to 
a.splice(2,1);




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


[jira] [Resolved] (FLEX-35194) [FlexJS] "TypeError: m is not a constructor" when creating

2016-12-06 Thread Alex Harui (JIRA)

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

Alex Harui resolved FLEX-35194.
---
Resolution: Cannot Reproduce

> [FlexJS] "TypeError: m is not a constructor" when creating 
> --
>
> Key: FLEX-35194
> URL: https://issues.apache.org/jira/browse/FLEX-35194
> Project: Apache Flex
>  Issue Type: Bug
>  Components: FlexJS
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Josh Tynjala
>
> Code to reproduce:
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic"
>   xmlns:local="*">
>   
>   
>   
>   
>valueChange="trace(stepper.value)"
>   minimum="0" maximum="10" stepSize="2"/>
>   
> 
> Result:
> "TypeError: m is not a constructor\nat org.apache.flex.html.Spinner.get 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/HTMLElementWrapper.js:244:60)\n
> at org.apache.flex.html.Spinner.get 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/Spinner.js:54:48)\n
> at org.apache.flex.html.NumericStepper.createElement 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/NumericStepper.js:72:40)\n
> at org.apache.flex.html.NumericStepper.org.apache.flex.core.UIBase [as 
> constructor] 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/UIBase.js:49:8)\n
> at Function.childCtor.base 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/library/closure/goog/base.js:2434:45)\n
> at new org.apache.flex.html.NumericStepper 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/NumericStepper.js:32:39)\n
> at Function.org.apache.flex.utils.MXMLDataInterpreter.generateMXMLObject 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/utils/MXMLDataInterpreter.js:57:36)\n
> at 
> Function.org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/utils/MXMLDataInterpreter.js:308:57)\n
> at FlexJSBasics.org.apache.flex.core.Application.generateMXMLAttributes 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:89:45)\n
> at new FlexJSBasics 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/FlexJSBasics.js:54:8)"
> The error occurs when the "iBeadModel" is instantiated  in 
> HTMLElementWrapper.js in the model property getter:
> var /** @type {Object} */ m = 
> org.apache.flex.core.ValuesManager.valuesImpl.getValue(this, 'iBeadModel');
> var /** @type {org.apache.flex.core.IBeadModel} */ b = new m();
> This error does not occur in FlexJS 0.7.0.



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


[jira] [Commented] (FLEX-35192) [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass of

2016-12-06 Thread Alex Harui (JIRA)

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

Alex Harui commented on FLEX-35192:
---

Yes.  While the compilation of source code will replace existing files, the 
copy of  JS from SWCs and the Google Closure Library do not overwrite.  Build 
scripts are supposed to clean when necessary and not copying all of these files 
saves compile time.

We could change the rules for copying JS from SWCs, but really, if you upgrade 
SDKs, you really should clean your projects and do a full rebuild.

> [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass 
> of 
> --
>
> Key: FLEX-35192
> URL: https://issues.apache.org/jira/browse/FLEX-35192
> Project: Apache Flex
>  Issue Type: Bug
>  Components: FalconJX
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Josh Tynjala
>Assignee: Alex Harui
> Fix For: Apache FlexJS 0.8.0
>
>
> Main application:
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic"
>   xmlns:local="*">
>   
>   
>   
>   
>   
>   
> 
> ViewSubclass.mxml
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic">
>   
> 
> The following error is thrown
> "TypeError: Cannot read property 'apply' of undefined\nat 
> ViewSubclass.get 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/ViewSubclass.js:54:65)\n
> at ViewSubclass.org.apache.flex.core.ContainerBase.addedToParent 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/ContainerBase.js:173:99)\n
> at FlexJSBasics.org.apache.flex.core.Application.addElement 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:115:5)\n
> at FlexJSBasics.org.apache.flex.core.Application.initialize 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:265:8)\n
> at FlexJSBasics.org.apache.flex.core.Application.start 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:236:10)\n
> at 
> file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/index.html:89:22"
> The error happens at the following line in the generated ViewSubclass.js:
> var arr = ViewSubclass.superClass_.get__MXMLDescriptor.apply(this);
> Perhaps the superClass_ doesn't have the getter, and it's further up the 
> inheritance chain?



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


[jira] [Resolved] (FLEX-35190) [FlexJS] DataItemRenderer breaks if extends as MXML file

2016-12-06 Thread Alex Harui (JIRA)

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

Alex Harui resolved FLEX-35190.
---
   Resolution: Fixed
 Assignee: Alex Harui  (was: Peter Ent)
Fix Version/s: Apache FalconJX 0.8.0

49835eca1a2d82125b504cd2608818059dab4e28

> [FlexJS] DataItemRenderer breaks if extends as MXML file
> 
>
> Key: FLEX-35190
> URL: https://issues.apache.org/jira/browse/FLEX-35190
> Project: Apache Flex
>  Issue Type: Bug
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Santanu Karar
>Assignee: Alex Harui
> Fix For: Apache FalconJX 0.8.0
>
> Attachments: devsena.patch
>
>
> I took a nightly build of Apache FlexJS and tried by it's supplied 
> *DataGridExample* example project. The example used a custom DataItemRenderer 
> class, but it was an ActionScript implementation. 
> When I tried to create MXML file extending same DataItemRenderer class, when 
> used to DataGrid component, I couldn't even able to build but thrown by 
> compiler error:
> *1551: Internal error in ABC generator subsystem, when generating code for: 
> E:\apache-flex-flexjs-0.8.0-bin\examples\flexjs\DataGridExample\src\products\ProductItemRendererMXML.mxml:
>  java.lang.NullPointerException*
> I'm attaching herewith the full error details for your review:
> {panel}
> Description   ResourcePathLocationType
> 1551: Internal error in ABC generator subsystem, when generating code for: 
> E:\apache-flex-flexjs-0.8.0-bin\examples\flexjs\DataGridExample\src\products\ProductItemRendererMXML.mxml:
>  java.lang.NullPointerException
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.analyzeExpression(BindingInfo.java:488)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.finishInit(BindingInfo.java:171)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.(BindingInfo.java:115)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingAnalyzer.analyze(BindingAnalyzer.java:56)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingDatabase.analyze(BindingDatabase.java:122)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.MXMLBindingDirectiveHelper.visitNode(MXMLBindingDirectiveHelper.java:116)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLDataBinding(MXMLClassDirectiveProcessor.java:4797)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLPropertySpecifier(MXMLClassDirectiveProcessor.java:3696)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:962)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLInstance(MXMLClassDirectiveProcessor.java:3349)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:939)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLArray(MXMLClassDirectiveProcessor.java:3088)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:926)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLPropertySpecifier(MXMLClassDirectiveProcessor.java:3605)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:962)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLInstance(MXMLClassDirectiveProcessor.java:3349)
>   at 
> 

[jira] [Assigned] (FLEX-35190) [FlexJS] DataItemRenderer breaks if extends as MXML file

2016-12-06 Thread Peter Ent (JIRA)

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

Peter Ent reassigned FLEX-35190:


Assignee: Peter Ent

> [FlexJS] DataItemRenderer breaks if extends as MXML file
> 
>
> Key: FLEX-35190
> URL: https://issues.apache.org/jira/browse/FLEX-35190
> Project: Apache Flex
>  Issue Type: Bug
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Santanu Karar
>Assignee: Peter Ent
> Attachments: devsena.patch
>
>
> I took a nightly build of Apache FlexJS and tried by it's supplied 
> *DataGridExample* example project. The example used a custom DataItemRenderer 
> class, but it was an ActionScript implementation. 
> When I tried to create MXML file extending same DataItemRenderer class, when 
> used to DataGrid component, I couldn't even able to build but thrown by 
> compiler error:
> *1551: Internal error in ABC generator subsystem, when generating code for: 
> E:\apache-flex-flexjs-0.8.0-bin\examples\flexjs\DataGridExample\src\products\ProductItemRendererMXML.mxml:
>  java.lang.NullPointerException*
> I'm attaching herewith the full error details for your review:
> {panel}
> Description   ResourcePathLocationType
> 1551: Internal error in ABC generator subsystem, when generating code for: 
> E:\apache-flex-flexjs-0.8.0-bin\examples\flexjs\DataGridExample\src\products\ProductItemRendererMXML.mxml:
>  java.lang.NullPointerException
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.analyzeExpression(BindingInfo.java:488)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.finishInit(BindingInfo.java:171)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.(BindingInfo.java:115)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingAnalyzer.analyze(BindingAnalyzer.java:56)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingDatabase.analyze(BindingDatabase.java:122)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.MXMLBindingDirectiveHelper.visitNode(MXMLBindingDirectiveHelper.java:116)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLDataBinding(MXMLClassDirectiveProcessor.java:4797)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLPropertySpecifier(MXMLClassDirectiveProcessor.java:3696)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:962)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLInstance(MXMLClassDirectiveProcessor.java:3349)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:939)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLArray(MXMLClassDirectiveProcessor.java:3088)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:926)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLPropertySpecifier(MXMLClassDirectiveProcessor.java:3605)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:962)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLInstance(MXMLClassDirectiveProcessor.java:3349)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:939)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> 

[jira] [Assigned] (FLEX-35197) [FlexJS] Data-binding is broken or not implemented in DataGrid component

2016-12-06 Thread Peter Ent (JIRA)

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

Peter Ent reassigned FLEX-35197:


Assignee: Peter Ent

> [FlexJS] Data-binding is broken or not implemented in DataGrid component
> 
>
> Key: FLEX-35197
> URL: https://issues.apache.org/jira/browse/FLEX-35197
> Project: Apache Flex
>  Issue Type: Question
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Santanu Karar
>Assignee: Peter Ent
> Attachments: src.zip
>
>
> (I've took the _DataGrid_ example that supplied within the nightly build of 
> 0.8.0 FlexJS SDK bundle, and I tried all my tests in that project only)
> h3.Requirement
> Binding is a strong feature in Flex technology. As an user I also do expect 
> that FlexJS will also empowers us with the same strength developing projects. 
> While testing _DataGrid_ example that supplies within SDK bundle, I noticed 
> that pay-as-you-go view only available but no actual run-time data binding 
> (as far I tested); which is the strength that I was talking about. Is 
> run-time data-binding (by any _beads_ or any other way) to DataGrid component 
> is at all available yet? 
> In the following tests I tried to update one row object's (_Product_) one 
> particular field (_image_) value, to see it's change in row renderer, at 
> run-time. 
> I also tried to add or delete an item to it's _dataProvider_ collection to 
> see their changes in DataGrid UI.
> h3.Actual Result
> Run-time data update to collection list not affecting to DataGrid UI.
> h3.How I Tested
> I've attached the source ZIP that supplied within SDK bundle and I modified 
> few codes to test my requirement.
> The example consists of a DataGrid, and few buttons as follows:
> - Replace Array - replace the entire model with a new Array
> - Update Entry - Update the image for the first entry
> - Add Entry - Add a new entry to the end of the list
> - Remove Entry - Remove the first entry
> - Refresh - this recreates the array and saves it to the model. This forces 
> the DataGrid to update by the same method as Replace Array
> "Replace Array" and "Refresh" worked fine. "Refresh" is a possible workaround 
> for data update to grid UI, but it is inefficient for a real application. The 
> other buttons did not cause DataGrid UI to update. The places which I've 
> changed as follows. 
> *Product.as*
> {code}
> // since I was trying to update one field at least to DataGrid UI, I added 
> get/set methods to the _image_ field
> private var _image:String;
> [Bindable(event="imageChanged")]
> public function get image():String
> {
>   return _image;
> }
>   
> public function set image(value:String):void
> {
>   if (value != _image)
>   {
>   _image = value;
>   dispatchEvent(new Event("imageChanged"));
>   }
> }
> {code}
> *MyInitialView.mxml*
> {code}
> // Replacing or recreating the collection list
> private function replaceArray():void
> { 
>   // Only this part worked when SimpleBinding used rather than 
> ConstantBinding
>   ProductsModel(applicationModel).productList = new ArrayList([new 
> Product("ps220","Weejets",35,190,"assets/smallorangerect.jpg")]);
>   
>   writeStatus();
> }
> // Update an entry to the collection
> private function updateEntry():void
> {
>   // This part not working or updating to DataGrid UI either
>   /*ProductsModel(applicationModel).productList.source[1] = tmp;
>   ProductsModel(applicationModel).dispatchEvent(new 
> Event("propertyChange"));*/
>   // This part not working or updating to DataGrid UI
>   var tmp:Product = 
> ProductsModel(applicationModel).productList.getItemAt(0) as Product;
>   tmp.image = "Modified Text";
>   
>   writeStatus();  
> }
> // Adding an item to the collection list
> private function addEntry():void
> {
>   // Add a new entry to the list
>   idCounter++;
>   ProductsModel(applicationModel).productList.addItem(new 
> Product("product" + idCounter, "Added" + idCounter, 35, 190, 
> "assets/smallorangerect.jpg"));
>   
>   writeStatus();
> }
> // Removing an item from the collection list
> private function removeEntry():void
> {
>   // remove the first item
>   ProductsModel(applicationModel).productList.removeItemAt(0);
>   
>   writeStatus();
> }
> // Refreshing the collection to datagrid
> private function refresh():void
> {
>   // force an update setting the model to the same value it already has.  
> See replaceArray()
>   
>   // this was insufficient to trigger the update:
>   // ProductsModel(applicationModel).productList = 
> 

[jira] [Comment Edited] (FLEX-35194) [FlexJS] "TypeError: m is not a constructor" when creating

2016-12-06 Thread Josh Tynjala (JIRA)

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

Josh Tynjala edited comment on FLEX-35194 at 12/6/16 6:42 PM:
--

After deleting my bin directory and building from scratch, this error no longer 
occurs. Similar to FLEX-35192, this appears to be an issue with the compiler 
failing to replace old versions of JS files.


was (Author: joshtynjala):
After deleting my bin directory and building from scratch, this error no longer 
occurs.

> [FlexJS] "TypeError: m is not a constructor" when creating 
> --
>
> Key: FLEX-35194
> URL: https://issues.apache.org/jira/browse/FLEX-35194
> Project: Apache Flex
>  Issue Type: Bug
>  Components: FlexJS
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Josh Tynjala
>
> Code to reproduce:
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic"
>   xmlns:local="*">
>   
>   
>   
>   
>valueChange="trace(stepper.value)"
>   minimum="0" maximum="10" stepSize="2"/>
>   
> 
> Result:
> "TypeError: m is not a constructor\nat org.apache.flex.html.Spinner.get 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/HTMLElementWrapper.js:244:60)\n
> at org.apache.flex.html.Spinner.get 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/Spinner.js:54:48)\n
> at org.apache.flex.html.NumericStepper.createElement 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/NumericStepper.js:72:40)\n
> at org.apache.flex.html.NumericStepper.org.apache.flex.core.UIBase [as 
> constructor] 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/UIBase.js:49:8)\n
> at Function.childCtor.base 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/library/closure/goog/base.js:2434:45)\n
> at new org.apache.flex.html.NumericStepper 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/NumericStepper.js:32:39)\n
> at Function.org.apache.flex.utils.MXMLDataInterpreter.generateMXMLObject 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/utils/MXMLDataInterpreter.js:57:36)\n
> at 
> Function.org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/utils/MXMLDataInterpreter.js:308:57)\n
> at FlexJSBasics.org.apache.flex.core.Application.generateMXMLAttributes 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:89:45)\n
> at new FlexJSBasics 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/FlexJSBasics.js:54:8)"
> The error occurs when the "iBeadModel" is instantiated  in 
> HTMLElementWrapper.js in the model property getter:
> var /** @type {Object} */ m = 
> org.apache.flex.core.ValuesManager.valuesImpl.getValue(this, 'iBeadModel');
> var /** @type {org.apache.flex.core.IBeadModel} */ b = new m();
> This error does not occur in FlexJS 0.7.0.



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


[jira] [Commented] (FLEX-35194) [FlexJS] "TypeError: m is not a constructor" when creating

2016-12-06 Thread Josh Tynjala (JIRA)

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

Josh Tynjala commented on FLEX-35194:
-

After deleting my bin directory and building from scratch, this error no longer 
occurs.

> [FlexJS] "TypeError: m is not a constructor" when creating 
> --
>
> Key: FLEX-35194
> URL: https://issues.apache.org/jira/browse/FLEX-35194
> Project: Apache Flex
>  Issue Type: Bug
>  Components: FlexJS
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Josh Tynjala
>
> Code to reproduce:
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic"
>   xmlns:local="*">
>   
>   
>   
>   
>valueChange="trace(stepper.value)"
>   minimum="0" maximum="10" stepSize="2"/>
>   
> 
> Result:
> "TypeError: m is not a constructor\nat org.apache.flex.html.Spinner.get 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/HTMLElementWrapper.js:244:60)\n
> at org.apache.flex.html.Spinner.get 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/Spinner.js:54:48)\n
> at org.apache.flex.html.NumericStepper.createElement 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/NumericStepper.js:72:40)\n
> at org.apache.flex.html.NumericStepper.org.apache.flex.core.UIBase [as 
> constructor] 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/UIBase.js:49:8)\n
> at Function.childCtor.base 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/library/closure/goog/base.js:2434:45)\n
> at new org.apache.flex.html.NumericStepper 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/html/NumericStepper.js:32:39)\n
> at Function.org.apache.flex.utils.MXMLDataInterpreter.generateMXMLObject 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/utils/MXMLDataInterpreter.js:57:36)\n
> at 
> Function.org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/utils/MXMLDataInterpreter.js:308:57)\n
> at FlexJSBasics.org.apache.flex.core.Application.generateMXMLAttributes 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:89:45)\n
> at new FlexJSBasics 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/FlexJSBasics.js:54:8)"
> The error occurs when the "iBeadModel" is instantiated  in 
> HTMLElementWrapper.js in the model property getter:
> var /** @type {Object} */ m = 
> org.apache.flex.core.ValuesManager.valuesImpl.getValue(this, 'iBeadModel');
> var /** @type {org.apache.flex.core.IBeadModel} */ b = new m();
> This error does not occur in FlexJS 0.7.0.



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


[jira] [Commented] (FLEX-35190) [FlexJS] DataItemRenderer breaks if extends as MXML file

2016-12-06 Thread Alex Harui (JIRA)

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

Alex Harui commented on FLEX-35190:
---

Hi Santanu,

I tried your patch.  It did not solve the problem for me.  The stack trace you 
posted shows a problem in the DataBinding expression handler in the compiler.  
If I remove the {data.image} from the original MXML renderer it compiles fine.

Adding DefaultProperty metadata to DataitemRenderer shouldn't be necessary 
since the base class already has it.  If it didn't, I think you would have 
gotten a different compile error.

I think I have a different fix for this issue.  But thanks for going through 
the process.

> [FlexJS] DataItemRenderer breaks if extends as MXML file
> 
>
> Key: FLEX-35190
> URL: https://issues.apache.org/jira/browse/FLEX-35190
> Project: Apache Flex
>  Issue Type: Bug
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Santanu Karar
> Attachments: devsena.patch
>
>
> I took a nightly build of Apache FlexJS and tried by it's supplied 
> *DataGridExample* example project. The example used a custom DataItemRenderer 
> class, but it was an ActionScript implementation. 
> When I tried to create MXML file extending same DataItemRenderer class, when 
> used to DataGrid component, I couldn't even able to build but thrown by 
> compiler error:
> *1551: Internal error in ABC generator subsystem, when generating code for: 
> E:\apache-flex-flexjs-0.8.0-bin\examples\flexjs\DataGridExample\src\products\ProductItemRendererMXML.mxml:
>  java.lang.NullPointerException*
> I'm attaching herewith the full error details for your review:
> {panel}
> Description   ResourcePathLocationType
> 1551: Internal error in ABC generator subsystem, when generating code for: 
> E:\apache-flex-flexjs-0.8.0-bin\examples\flexjs\DataGridExample\src\products\ProductItemRendererMXML.mxml:
>  java.lang.NullPointerException
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.analyzeExpression(BindingInfo.java:488)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.finishInit(BindingInfo.java:171)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.(BindingInfo.java:115)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingAnalyzer.analyze(BindingAnalyzer.java:56)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingDatabase.analyze(BindingDatabase.java:122)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.MXMLBindingDirectiveHelper.visitNode(MXMLBindingDirectiveHelper.java:116)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLDataBinding(MXMLClassDirectiveProcessor.java:4797)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLPropertySpecifier(MXMLClassDirectiveProcessor.java:3696)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:962)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLInstance(MXMLClassDirectiveProcessor.java:3349)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:939)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLArray(MXMLClassDirectiveProcessor.java:3088)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:926)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLPropertySpecifier(MXMLClassDirectiveProcessor.java:3605)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:962)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> 

[jira] [Commented] (FLEX-35192) [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass of

2016-12-06 Thread Josh Tynjala (JIRA)

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

Josh Tynjala commented on FLEX-35192:
-

ContainerBase.js in bin/js-debug did not contain get__MXMLDescriptor. I deleted 
the bin directory and rebuilt, and the correct version of ContainerBase.js 
appeared.

I know that there was a change to the compiler recently where the bin directory 
is no longer deleted. Could it be that the compiler is failing to replace a 
file if it already exists in bin?

> [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass 
> of 
> --
>
> Key: FLEX-35192
> URL: https://issues.apache.org/jira/browse/FLEX-35192
> Project: Apache Flex
>  Issue Type: Bug
>  Components: FalconJX
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Josh Tynjala
>Assignee: Alex Harui
> Fix For: Apache FlexJS 0.8.0
>
>
> Main application:
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic"
>   xmlns:local="*">
>   
>   
>   
>   
>   
>   
> 
> ViewSubclass.mxml
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic">
>   
> 
> The following error is thrown
> "TypeError: Cannot read property 'apply' of undefined\nat 
> ViewSubclass.get 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/ViewSubclass.js:54:65)\n
> at ViewSubclass.org.apache.flex.core.ContainerBase.addedToParent 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/ContainerBase.js:173:99)\n
> at FlexJSBasics.org.apache.flex.core.Application.addElement 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:115:5)\n
> at FlexJSBasics.org.apache.flex.core.Application.initialize 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:265:8)\n
> at FlexJSBasics.org.apache.flex.core.Application.start 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:236:10)\n
> at 
> file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/index.html:89:22"
> The error happens at the following line in the generated ViewSubclass.js:
> var arr = ViewSubclass.superClass_.get__MXMLDescriptor.apply(this);
> Perhaps the superClass_ doesn't have the getter, and it's further up the 
> inheritance chain?



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


[jira] [Commented] (FLEX-35192) [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass of

2016-12-06 Thread Alex Harui (JIRA)

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

Alex Harui commented on FLEX-35192:
---

Compare the ContainerBase.js in your bin/js-debug.  It should be the same as 
the one from HTML.swc although it might have some goog.requires removed.

> [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass 
> of 
> --
>
> Key: FLEX-35192
> URL: https://issues.apache.org/jira/browse/FLEX-35192
> Project: Apache Flex
>  Issue Type: Bug
>  Components: FalconJX
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Josh Tynjala
>Assignee: Alex Harui
> Fix For: Apache FlexJS 0.8.0
>
>
> Main application:
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic"
>   xmlns:local="*">
>   
>   
>   
>   
>   
>   
> 
> ViewSubclass.mxml
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic">
>   
> 
> The following error is thrown
> "TypeError: Cannot read property 'apply' of undefined\nat 
> ViewSubclass.get 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/ViewSubclass.js:54:65)\n
> at ViewSubclass.org.apache.flex.core.ContainerBase.addedToParent 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/ContainerBase.js:173:99)\n
> at FlexJSBasics.org.apache.flex.core.Application.addElement 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:115:5)\n
> at FlexJSBasics.org.apache.flex.core.Application.initialize 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:265:8)\n
> at FlexJSBasics.org.apache.flex.core.Application.start 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:236:10)\n
> at 
> file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/index.html:89:22"
> The error happens at the following line in the generated ViewSubclass.js:
> var arr = ViewSubclass.superClass_.get__MXMLDescriptor.apply(this);
> Perhaps the superClass_ doesn't have the getter, and it's further up the 
> inheritance chain?



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


[jira] [Commented] (FLEX-35192) [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass of

2016-12-06 Thread Alex Harui (JIRA)

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

Alex Harui commented on FLEX-35192:
---

All it takes is one rogue environment variable.  How are you launching the 
compiler?   Please post console output including the command-line if there is 
one.

> [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass 
> of 
> --
>
> Key: FLEX-35192
> URL: https://issues.apache.org/jira/browse/FLEX-35192
> Project: Apache Flex
>  Issue Type: Bug
>  Components: FalconJX
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Josh Tynjala
>Assignee: Alex Harui
> Fix For: Apache FlexJS 0.8.0
>
>
> Main application:
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic"
>   xmlns:local="*">
>   
>   
>   
>   
>   
>   
> 
> ViewSubclass.mxml
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic">
>   
> 
> The following error is thrown
> "TypeError: Cannot read property 'apply' of undefined\nat 
> ViewSubclass.get 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/ViewSubclass.js:54:65)\n
> at ViewSubclass.org.apache.flex.core.ContainerBase.addedToParent 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/ContainerBase.js:173:99)\n
> at FlexJSBasics.org.apache.flex.core.Application.addElement 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:115:5)\n
> at FlexJSBasics.org.apache.flex.core.Application.initialize 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:265:8)\n
> at FlexJSBasics.org.apache.flex.core.Application.start 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:236:10)\n
> at 
> file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/index.html:89:22"
> The error happens at the following line in the generated ViewSubclass.js:
> var arr = ViewSubclass.superClass_.get__MXMLDescriptor.apply(this);
> Perhaps the superClass_ doesn't have the getter, and it's further up the 
> inheritance chain?



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


[jira] [Commented] (FLEX-35192) [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass of

2016-12-06 Thread Josh Tynjala (JIRA)

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

Josh Tynjala commented on FLEX-35192:
-

I should add this this is a fresh nightly build downloaded with the Apache Flex 
Installer, so there won't be anything old.

> [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass 
> of 
> --
>
> Key: FLEX-35192
> URL: https://issues.apache.org/jira/browse/FLEX-35192
> Project: Apache Flex
>  Issue Type: Bug
>  Components: FalconJX
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Josh Tynjala
>Assignee: Alex Harui
> Fix For: Apache FlexJS 0.8.0
>
>
> Main application:
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic"
>   xmlns:local="*">
>   
>   
>   
>   
>   
>   
> 
> ViewSubclass.mxml
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic">
>   
> 
> The following error is thrown
> "TypeError: Cannot read property 'apply' of undefined\nat 
> ViewSubclass.get 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/ViewSubclass.js:54:65)\n
> at ViewSubclass.org.apache.flex.core.ContainerBase.addedToParent 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/ContainerBase.js:173:99)\n
> at FlexJSBasics.org.apache.flex.core.Application.addElement 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:115:5)\n
> at FlexJSBasics.org.apache.flex.core.Application.initialize 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:265:8)\n
> at FlexJSBasics.org.apache.flex.core.Application.start 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:236:10)\n
> at 
> file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/index.html:89:22"
> The error happens at the following line in the generated ViewSubclass.js:
> var arr = ViewSubclass.superClass_.get__MXMLDescriptor.apply(this);
> Perhaps the superClass_ doesn't have the getter, and it's further up the 
> inheritance chain?



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


[jira] [Commented] (FLEX-35192) [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass of

2016-12-06 Thread Josh Tynjala (JIRA)

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

Josh Tynjala commented on FLEX-35192:
-

Yes, org/apache/flex/core/ContainerBase.js in HTML.swc defines 
get__MXMLDescriptor on line 378. frameworks/js/generated-sources does not exist.

> [FalconJX] TypeError: Cannot read property 'apply' of undefined with subclass 
> of 
> --
>
> Key: FLEX-35192
> URL: https://issues.apache.org/jira/browse/FLEX-35192
> Project: Apache Flex
>  Issue Type: Bug
>  Components: FalconJX
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Josh Tynjala
>Assignee: Alex Harui
> Fix For: Apache FlexJS 0.8.0
>
>
> Main application:
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic"
>   xmlns:local="*">
>   
>   
>   
>   
>   
>   
> 
> ViewSubclass.mxml
> http://ns.adobe.com/mxml/2009;
>   xmlns:js="library://ns.apache.org/flexjs/basic">
>   
> 
> The following error is thrown
> "TypeError: Cannot read property 'apply' of undefined\nat 
> ViewSubclass.get 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/ViewSubclass.js:54:65)\n
> at ViewSubclass.org.apache.flex.core.ContainerBase.addedToParent 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/ContainerBase.js:173:99)\n
> at FlexJSBasics.org.apache.flex.core.Application.addElement 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:115:5)\n
> at FlexJSBasics.org.apache.flex.core.Application.initialize 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:265:8)\n
> at FlexJSBasics.org.apache.flex.core.Application.start 
> (file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/org/apache/flex/core/Application.js:236:10)\n
> at 
> file:///Users/joshtynjala/Development/NextGenAS/examples/FlexJSBasics/bin/js-debug/index.html:89:22"
> The error happens at the following line in the generated ViewSubclass.js:
> var arr = ViewSubclass.superClass_.get__MXMLDescriptor.apply(this);
> Perhaps the superClass_ doesn't have the getter, and it's further up the 
> inheritance chain?



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


[jira] [Created] (FLEX-35198) [FlexJS] States - includeIn not working in release build

2016-12-06 Thread Yishay Weiss (JIRA)
Yishay Weiss created FLEX-35198:
---

 Summary: [FlexJS] States - includeIn not working in release build
 Key: FLEX-35198
 URL: https://issues.apache.org/jira/browse/FLEX-35198
 Project: Apache Flex
  Issue Type: Bug
Affects Versions: Apache FlexJS 0.8.0
Reporter: Yishay Weiss


When changing the current state of Example.mxml the flash version correctly 
shows all images, and changes them according to state, the js debug version 
correctly shows the initial state images but fails to change them accoding to 
state, the js release version doesn't show the correct images and doesn't 
change anything according to state. 

See screencase here:
http://screencast.com/t/FGtDdUA3yKOg

Example app:
https://paste.apache.org/FoeY

Example.mxml
https://paste.apache.org/K76f





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


[jira] [Comment Edited] (FLEX-35190) [FlexJS] DataItemRenderer breaks if extends as MXML file

2016-12-06 Thread Santanu Karar (JIRA)

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

Santanu Karar edited comment on FLEX-35190 at 12/6/16 9:59 AM:
---

Hello Alex,

I've updated the patch file, sorry for the trouble. 

Yes, after adding that default property metadata, I did build it's 'swc' and 
tested locally. This worked fine after that addition. I noticed I thrown by the 
said error when my MXML implementation was almost empty even:
{code}
http://ns.adobe.com/mxml/2009;
xmlns:js="library://ns.apache.org/flexjs/basic">

{code}

I'm not sure about what binding expression problem you've noticed, though.


was (Author: santanu4ver):
Hello Alex,

I've updated the patch file, sorry for the trouble. 

Yes, after adding that default property metadata, I did build it's 'swc' and 
tested locally. This worked fine after that addition. I noticed I thrown by the 
said error when my MXML implementation was almost empty event:
{code}
http://ns.adobe.com/mxml/2009;
xmlns:js="library://ns.apache.org/flexjs/basic">

{code}

I'm not sure about what binding expression problem you've noticed, though.

> [FlexJS] DataItemRenderer breaks if extends as MXML file
> 
>
> Key: FLEX-35190
> URL: https://issues.apache.org/jira/browse/FLEX-35190
> Project: Apache Flex
>  Issue Type: Bug
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Santanu Karar
> Attachments: devsena.patch
>
>
> I took a nightly build of Apache FlexJS and tried by it's supplied 
> *DataGridExample* example project. The example used a custom DataItemRenderer 
> class, but it was an ActionScript implementation. 
> When I tried to create MXML file extending same DataItemRenderer class, when 
> used to DataGrid component, I couldn't even able to build but thrown by 
> compiler error:
> *1551: Internal error in ABC generator subsystem, when generating code for: 
> E:\apache-flex-flexjs-0.8.0-bin\examples\flexjs\DataGridExample\src\products\ProductItemRendererMXML.mxml:
>  java.lang.NullPointerException*
> I'm attaching herewith the full error details for your review:
> {panel}
> Description   ResourcePathLocationType
> 1551: Internal error in ABC generator subsystem, when generating code for: 
> E:\apache-flex-flexjs-0.8.0-bin\examples\flexjs\DataGridExample\src\products\ProductItemRendererMXML.mxml:
>  java.lang.NullPointerException
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.analyzeExpression(BindingInfo.java:488)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.finishInit(BindingInfo.java:171)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.(BindingInfo.java:115)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingAnalyzer.analyze(BindingAnalyzer.java:56)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingDatabase.analyze(BindingDatabase.java:122)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.MXMLBindingDirectiveHelper.visitNode(MXMLBindingDirectiveHelper.java:116)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLDataBinding(MXMLClassDirectiveProcessor.java:4797)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLPropertySpecifier(MXMLClassDirectiveProcessor.java:3696)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:962)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLInstance(MXMLClassDirectiveProcessor.java:3349)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:939)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLArray(MXMLClassDirectiveProcessor.java:3088)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:926)
>   at 
> 

[jira] [Updated] (FLEX-35190) [FlexJS] DataItemRenderer breaks if extends as MXML file

2016-12-06 Thread Santanu Karar (JIRA)

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

Santanu Karar updated FLEX-35190:
-
Attachment: devsena.patch

> [FlexJS] DataItemRenderer breaks if extends as MXML file
> 
>
> Key: FLEX-35190
> URL: https://issues.apache.org/jira/browse/FLEX-35190
> Project: Apache Flex
>  Issue Type: Bug
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Santanu Karar
> Attachments: devsena.patch
>
>
> I took a nightly build of Apache FlexJS and tried by it's supplied 
> *DataGridExample* example project. The example used a custom DataItemRenderer 
> class, but it was an ActionScript implementation. 
> When I tried to create MXML file extending same DataItemRenderer class, when 
> used to DataGrid component, I couldn't even able to build but thrown by 
> compiler error:
> *1551: Internal error in ABC generator subsystem, when generating code for: 
> E:\apache-flex-flexjs-0.8.0-bin\examples\flexjs\DataGridExample\src\products\ProductItemRendererMXML.mxml:
>  java.lang.NullPointerException*
> I'm attaching herewith the full error details for your review:
> {panel}
> Description   ResourcePathLocationType
> 1551: Internal error in ABC generator subsystem, when generating code for: 
> E:\apache-flex-flexjs-0.8.0-bin\examples\flexjs\DataGridExample\src\products\ProductItemRendererMXML.mxml:
>  java.lang.NullPointerException
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.analyzeExpression(BindingInfo.java:488)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.finishInit(BindingInfo.java:171)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.(BindingInfo.java:115)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingAnalyzer.analyze(BindingAnalyzer.java:56)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingDatabase.analyze(BindingDatabase.java:122)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.MXMLBindingDirectiveHelper.visitNode(MXMLBindingDirectiveHelper.java:116)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLDataBinding(MXMLClassDirectiveProcessor.java:4797)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLPropertySpecifier(MXMLClassDirectiveProcessor.java:3696)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:962)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLInstance(MXMLClassDirectiveProcessor.java:3349)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:939)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLArray(MXMLClassDirectiveProcessor.java:3088)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:926)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLPropertySpecifier(MXMLClassDirectiveProcessor.java:3605)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:962)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLInstance(MXMLClassDirectiveProcessor.java:3349)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:939)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> 

[jira] [Commented] (FLEX-35190) [FlexJS] DataItemRenderer breaks if extends as MXML file

2016-12-06 Thread Santanu Karar (JIRA)

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

Santanu Karar commented on FLEX-35190:
--

Hello Alex,

I've updated the patch file, sorry for the trouble. 

Yes, after adding that default property metadata, I did build it's 'swc' and 
tested locally. This worked fine after that addition. I noticed I thrown by the 
said error when my MXML implementation was almost empty event:
{code}
http://ns.adobe.com/mxml/2009;
xmlns:js="library://ns.apache.org/flexjs/basic">

{code}

I'm not sure about what binding expression problem you've noticed, though.

> [FlexJS] DataItemRenderer breaks if extends as MXML file
> 
>
> Key: FLEX-35190
> URL: https://issues.apache.org/jira/browse/FLEX-35190
> Project: Apache Flex
>  Issue Type: Bug
>Affects Versions: Apache FlexJS 0.8.0
>Reporter: Santanu Karar
> Attachments: devsena.patch
>
>
> I took a nightly build of Apache FlexJS and tried by it's supplied 
> *DataGridExample* example project. The example used a custom DataItemRenderer 
> class, but it was an ActionScript implementation. 
> When I tried to create MXML file extending same DataItemRenderer class, when 
> used to DataGrid component, I couldn't even able to build but thrown by 
> compiler error:
> *1551: Internal error in ABC generator subsystem, when generating code for: 
> E:\apache-flex-flexjs-0.8.0-bin\examples\flexjs\DataGridExample\src\products\ProductItemRendererMXML.mxml:
>  java.lang.NullPointerException*
> I'm attaching herewith the full error details for your review:
> {panel}
> Description   ResourcePathLocationType
> 1551: Internal error in ABC generator subsystem, when generating code for: 
> E:\apache-flex-flexjs-0.8.0-bin\examples\flexjs\DataGridExample\src\products\ProductItemRendererMXML.mxml:
>  java.lang.NullPointerException
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.analyzeExpression(BindingInfo.java:488)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.finishInit(BindingInfo.java:171)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingInfo.(BindingInfo.java:115)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingAnalyzer.analyze(BindingAnalyzer.java:56)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.BindingDatabase.analyze(BindingDatabase.java:122)
>   at 
> org.apache.flex.compiler.internal.codegen.databinding.MXMLBindingDirectiveHelper.visitNode(MXMLBindingDirectiveHelper.java:116)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLDataBinding(MXMLClassDirectiveProcessor.java:4797)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLPropertySpecifier(MXMLClassDirectiveProcessor.java:3696)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:962)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLInstance(MXMLClassDirectiveProcessor.java:3349)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:939)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:831)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLArray(MXMLClassDirectiveProcessor.java:3088)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:926)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processMXMLPropertySpecifier(MXMLClassDirectiveProcessor.java:3605)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.processNode(MXMLClassDirectiveProcessor.java:962)
>   at 
> org.apache.flex.compiler.internal.as.codegen.MXMLClassDirectiveProcessor.traverse(MXMLClassDirectiveProcessor.java:861)
>   at 
>