You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Peter Ent <pe...@adobe.com> on 2013/11/19 21:27:37 UTC

[FALCONJX] [FLEXJS] AS to JS compilation issues

Hi,

I am attempting to take the DataGrid, written in ActionScript, and compile it into JavaScript to see if that's a viable way to build JavaScript components - or at least get a good head start on writing the JavaScript. I've run into a couple of  issues since taking the most recent falcon code changes.

Issue 1
My ActionScript code reads:

import org.apache.flex.core.IBeadModel;

…

var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as IDataGridModel;


I get this error while compiling:

/Users/pent/Documents/Apache Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/beads/DataGridView.js:84: ERROR - variable IBeadModel is undeclared

  var /** @type {org.apache.flex.core.IDataGridModel} */ sharedModel = org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadModel), org.apache.flex.core.IDataGridModel);

IBeadModel has an import statement. IBeadModel should be fully qualified, I think.



Issue 2
My ActionScript code reads:

import org.apache.flex.html.staticControls.List;

…

for(var i:int=0; i < columns.length; i++) {

    var column:List = columns[i];

I get this error while compiling:

/Users/pent/Documents/Apache Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/beads/DataGridView.js:121: WARNING - Bad type annotation. Unknown type List

    var /** @type {List} */ column = this.columns[i];

                   ^

What's funny about this last error is that I also have this ActionScript code which does not produce an error:


for(var i:int=0; i < pm.columnLabels.length; i++) {

    var column:List = new SimpleList();

The JavaScript code generated for these statement is:
for (var /** @type {number} */ i = 0; i < pm.get_columnLabels().length; i++) {
    var /** @type {org.apache.flex.html.staticControls.List} */ column = new org.apache.flex.html.staticControls.SimpleList();



I'll file a bug if it looks like my code is OK.

Regards,
Peter







Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Alex Harui <ah...@adobe.com>.
I just synced up and am getting the error.  I'm now off to see what it
takes to switch to Java 7.


On 11/20/13 12:27 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

>I haven't run this through Flash Builder yet... And I spent the
>afternoon tweaking (hacking more like) my Mac to get it to install and
>accept Java 7. I don't like this one bit, but i only just now hooked
>myself up to the Closure release list, so I had no early warning.
>
>I think things will settle down once the whole tool chain has been
>built (and rebuilt) with Java 7. Let's wait what kind of experience
>Alex has and what he makes of this ;-)
>
>EdB
>
>
>
>On Wed, Nov 20, 2013 at 8:13 PM, Peter Ent <pe...@adobe.com> wrote:
>> I've installed Java 1.7.0_45 and set JAVA_HOME to the location reported
>>by
>> java_home, then built flex-falcon and installed it into the FlexJS
>> overlay. I get the same error. So then I changed the Java preferences
>>for
>> Flash Builder but get same error.
>>
>> Do the external Flash Builder tools Alex created also need to be rebuilt
>> with Java 1.7?
>>
>> --peter
>>
>> On 11/20/13 11:50 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>
>>>Yes, the latest thing: since the last compiler update we need Java
>>>1.7, I'm afraid.
>>>
>>>EdB
>>>
>>>
>>>
>>>On Wed, Nov 20, 2013 at 4:25 PM, Peter Ent <pe...@adobe.com> wrote:
>>>> I rebuilt the compiler and installed it into the FlexJS overlay as
>>>>I've
>>>> done before. Building the AS version of my test works fine. Building
>>>>with
>>>> Falcon JX now gives me this console output:
>>>>
>>>> using FlashBuilder Project Files
>>>> FlashBuilder settings:
>>>>     -locale
>>>>     en_US
>>>>     -source-path+=/Users/pent/Documents/Apache
>>>>Flex/DataGridXcompile/src
>>>>     -compiler.accessible=true
>>>>     -output=/Users/pent/Documents/Apache
>>>> Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
>>>>     -library-path+=/Users/pent/Documents/Apache
>>>>Flex/DataGridXcompile/libs
>>>>     -compiler.mxml.children-as-data
>>>>     -compiler.binding-value-change-event-type=valueChange
>>>>     -js-output-type=FLEXJS
>>>>     -closure-lib=/Users/pent/google/library
>>>>     -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
>>>>     -fb
>>>>     /Users/pent/Documents/Apache
>>>> Flex/DataGridXcompile/src/DataGridXcompile.mxml
>>>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>>>> com/google/javascript/jscomp/ErrorManager : Unsupported major.minor
>>>> version 51.0
>>>>         at java.lang.ClassLoader.defineClass1(Native Method)
>>>>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>>>         at
>>>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>>>>         at 
>>>>java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>>>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>         at 
>>>>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>>         at
>>>>org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
>>>>         at
>>>>org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:261)
>>>>         at
>>>>org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:219)
>>>>         at
>>>>org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)
>>>>
>>>>
>>>>
>>>>
>>>> Not sure if I need to update my Java or not (didn't have to do it
>>>> yesterday).
>>>>
>>>> --peter
>>>>
>>>> On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>
>>>>>I filed two tickets for each issue.
>>>>>
>>>>>Thanks. This is getting really close.
>>>>>--peter
>>>>>
>>>>>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>
>>>>>>I second that. I'll take a look tomorrow, if you file that JIRA
>>>>>>ticket
>>>>>>;-)
>>>>>>
>>>>>>EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>> Yep, those look like bugs to me.
>>>>>>>
>>>>>>> -Alex
>>>>>>>
>>>>>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>>>
>>>>>>>>Hi,
>>>>>>>>
>>>>>>>>I am attempting to take the DataGrid, written in ActionScript, and
>>>>>>>>compile it into JavaScript to see if that's a viable way to build
>>>>>>>>JavaScript components - or at least get a good head start on
>>>>>>>>writing
>>>>>>>>the
>>>>>>>>JavaScript. I've run into a couple of  issues since taking the most
>>>>>>>>recent falcon code changes.
>>>>>>>>
>>>>>>>>Issue 1
>>>>>>>>My ActionScript code reads:
>>>>>>>>
>>>>>>>>import org.apache.flex.core.IBeadModel;
>>>>>>>>
>>>>>>>>Š
>>>>>>>>
>>>>>>>>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel)
>>>>>>>>as
>>>>>>>>IDataGridModel;
>>>>>>>>
>>>>>>>>
>>>>>>>>I get this error while compiling:
>>>>>>>>
>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticContr
>>>>>>>>ol
>>>>>>>>s/
>>>>>>>>b
>>>>>>>>ea
>>>>>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>>>>>>>
>>>>>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */
>>>>>>>>sharedModel
>>>>>>>>=
>>>>>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadM
>>>>>>>>od
>>>>>>>>el
>>>>>>>>)
>>>>>>>>,
>>>>>>>>org.apache.flex.core.IDataGridModel);
>>>>>>>>
>>>>>>>>IBeadModel has an import statement. IBeadModel should be fully
>>>>>>>>qualified,
>>>>>>>>I think.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>Issue 2
>>>>>>>>My ActionScript code reads:
>>>>>>>>
>>>>>>>>import org.apache.flex.html.staticControls.List;
>>>>>>>>
>>>>>>>>Š
>>>>>>>>
>>>>>>>>for(var i:int=0; i < columns.length; i++) {
>>>>>>>>
>>>>>>>>    var column:List = columns[i];
>>>>>>>>
>>>>>>>>I get this error while compiling:
>>>>>>>>
>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticContr
>>>>>>>>ol
>>>>>>>>s/
>>>>>>>>b
>>>>>>>>ea
>>>>>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown type
>>>>>>>>List
>>>>>>>>
>>>>>>>>    var /** @type {List} */ column = this.columns[i];
>>>>>>>>
>>>>>>>>                   ^
>>>>>>>>
>>>>>>>>What's funny about this last error is that I also have this
>>>>>>>>ActionScript
>>>>>>>>code which does not produce an error:
>>>>>>>>
>>>>>>>>
>>>>>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>>>>>
>>>>>>>>    var column:List = new SimpleList();
>>>>>>>>
>>>>>>>>The JavaScript code generated for these statement is:
>>>>>>>>for (var /** @type {number} */ i = 0; i <
>>>>>>>>pm.get_columnLabels().length;
>>>>>>>>i++) {
>>>>>>>>    var /** @type {org.apache.flex.html.staticControls.List} */
>>>>>>>>column
>>>>>>>>=
>>>>>>>>new org.apache.flex.html.staticControls.SimpleList();
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>I'll file a bug if it looks like my code is OK.
>>>>>>>>
>>>>>>>>Regards,
>>>>>>>>Peter
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>--
>>>>>>Ix Multimedia Software
>>>>>>
>>>>>>Jan Luykenstraat 27
>>>>>>3521 VB Utrecht
>>>>>>
>>>>>>T. 06-51952295
>>>>>>I. www.ixsoftware.nl
>>>>>
>>>>
>>>
>>>
>>>
>>>--
>>>Ix Multimedia Software
>>>
>>>Jan Luykenstraat 27
>>>3521 VB Utrecht
>>>
>>>T. 06-51952295
>>>I. www.ixsoftware.nl
>>
>
>
>
>-- 
>Ix Multimedia Software
>
>Jan Luykenstraat 27
>3521 VB Utrecht
>
>T. 06-51952295
>I. www.ixsoftware.nl


Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Erik de Bruin <er...@ixsoftware.nl>.
I haven't run this through Flash Builder yet... And I spent the
afternoon tweaking (hacking more like) my Mac to get it to install and
accept Java 7. I don't like this one bit, but i only just now hooked
myself up to the Closure release list, so I had no early warning.

I think things will settle down once the whole tool chain has been
built (and rebuilt) with Java 7. Let's wait what kind of experience
Alex has and what he makes of this ;-)

EdB



On Wed, Nov 20, 2013 at 8:13 PM, Peter Ent <pe...@adobe.com> wrote:
> I've installed Java 1.7.0_45 and set JAVA_HOME to the location reported by
> java_home, then built flex-falcon and installed it into the FlexJS
> overlay. I get the same error. So then I changed the Java preferences for
> Flash Builder but get same error.
>
> Do the external Flash Builder tools Alex created also need to be rebuilt
> with Java 1.7?
>
> --peter
>
> On 11/20/13 11:50 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>>Yes, the latest thing: since the last compiler update we need Java
>>1.7, I'm afraid.
>>
>>EdB
>>
>>
>>
>>On Wed, Nov 20, 2013 at 4:25 PM, Peter Ent <pe...@adobe.com> wrote:
>>> I rebuilt the compiler and installed it into the FlexJS overlay as I've
>>> done before. Building the AS version of my test works fine. Building
>>>with
>>> Falcon JX now gives me this console output:
>>>
>>> using FlashBuilder Project Files
>>> FlashBuilder settings:
>>>     -locale
>>>     en_US
>>>     -source-path+=/Users/pent/Documents/Apache Flex/DataGridXcompile/src
>>>     -compiler.accessible=true
>>>     -output=/Users/pent/Documents/Apache
>>> Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
>>>     -library-path+=/Users/pent/Documents/Apache
>>>Flex/DataGridXcompile/libs
>>>     -compiler.mxml.children-as-data
>>>     -compiler.binding-value-change-event-type=valueChange
>>>     -js-output-type=FLEXJS
>>>     -closure-lib=/Users/pent/google/library
>>>     -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
>>>     -fb
>>>     /Users/pent/Documents/Apache
>>> Flex/DataGridXcompile/src/DataGridXcompile.mxml
>>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>>> com/google/javascript/jscomp/ErrorManager : Unsupported major.minor
>>> version 51.0
>>>         at java.lang.ClassLoader.defineClass1(Native Method)
>>>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>>         at
>>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>>>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>         at
>>>org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
>>>         at
>>>org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:261)
>>>         at
>>>org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:219)
>>>         at
>>>org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)
>>>
>>>
>>>
>>>
>>> Not sure if I need to update my Java or not (didn't have to do it
>>> yesterday).
>>>
>>> --peter
>>>
>>> On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>
>>>>I filed two tickets for each issue.
>>>>
>>>>Thanks. This is getting really close.
>>>>--peter
>>>>
>>>>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>
>>>>>I second that. I'll take a look tomorrow, if you file that JIRA ticket
>>>>>;-)
>>>>>
>>>>>EdB
>>>>>
>>>>>
>>>>>
>>>>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>> Yep, those look like bugs to me.
>>>>>>
>>>>>> -Alex
>>>>>>
>>>>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>>
>>>>>>>Hi,
>>>>>>>
>>>>>>>I am attempting to take the DataGrid, written in ActionScript, and
>>>>>>>compile it into JavaScript to see if that's a viable way to build
>>>>>>>JavaScript components - or at least get a good head start on writing
>>>>>>>the
>>>>>>>JavaScript. I've run into a couple of  issues since taking the most
>>>>>>>recent falcon code changes.
>>>>>>>
>>>>>>>Issue 1
>>>>>>>My ActionScript code reads:
>>>>>>>
>>>>>>>import org.apache.flex.core.IBeadModel;
>>>>>>>
>>>>>>>Š
>>>>>>>
>>>>>>>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as
>>>>>>>IDataGridModel;
>>>>>>>
>>>>>>>
>>>>>>>I get this error while compiling:
>>>>>>>
>>>>>>>/Users/pent/Documents/Apache
>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControl
>>>>>>>s/
>>>>>>>b
>>>>>>>ea
>>>>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>>>>>>
>>>>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */ sharedModel
>>>>>>>=
>>>>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadMod
>>>>>>>el
>>>>>>>)
>>>>>>>,
>>>>>>>org.apache.flex.core.IDataGridModel);
>>>>>>>
>>>>>>>IBeadModel has an import statement. IBeadModel should be fully
>>>>>>>qualified,
>>>>>>>I think.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>Issue 2
>>>>>>>My ActionScript code reads:
>>>>>>>
>>>>>>>import org.apache.flex.html.staticControls.List;
>>>>>>>
>>>>>>>Š
>>>>>>>
>>>>>>>for(var i:int=0; i < columns.length; i++) {
>>>>>>>
>>>>>>>    var column:List = columns[i];
>>>>>>>
>>>>>>>I get this error while compiling:
>>>>>>>
>>>>>>>/Users/pent/Documents/Apache
>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControl
>>>>>>>s/
>>>>>>>b
>>>>>>>ea
>>>>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown type
>>>>>>>List
>>>>>>>
>>>>>>>    var /** @type {List} */ column = this.columns[i];
>>>>>>>
>>>>>>>                   ^
>>>>>>>
>>>>>>>What's funny about this last error is that I also have this
>>>>>>>ActionScript
>>>>>>>code which does not produce an error:
>>>>>>>
>>>>>>>
>>>>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>>>>
>>>>>>>    var column:List = new SimpleList();
>>>>>>>
>>>>>>>The JavaScript code generated for these statement is:
>>>>>>>for (var /** @type {number} */ i = 0; i <
>>>>>>>pm.get_columnLabels().length;
>>>>>>>i++) {
>>>>>>>    var /** @type {org.apache.flex.html.staticControls.List} */
>>>>>>>column
>>>>>>>=
>>>>>>>new org.apache.flex.html.staticControls.SimpleList();
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>I'll file a bug if it looks like my code is OK.
>>>>>>>
>>>>>>>Regards,
>>>>>>>Peter
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>Ix Multimedia Software
>>>>>
>>>>>Jan Luykenstraat 27
>>>>>3521 VB Utrecht
>>>>>
>>>>>T. 06-51952295
>>>>>I. www.ixsoftware.nl
>>>>
>>>
>>
>>
>>
>>--
>>Ix Multimedia Software
>>
>>Jan Luykenstraat 27
>>3521 VB Utrecht
>>
>>T. 06-51952295
>>I. www.ixsoftware.nl
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Erik de Bruin <er...@ixsoftware.nl>.
>>Falcon got updated to require Java 1.7? Why was that?
> FalconJX uses Google Closure which seems to want 1.7.  Not sure if Falcon
> just also move to 1.7 or not.

Why not? Is there a particular issue with Falcon causing us to rely on
an old version of Java?

EdB



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Alex Harui <ah...@adobe.com>.
Adobe IT said they should do the upgrade, so I'm in waiting mode.  In the
meantime, I added the ability to switch to an older closure compiler that
doesn't seem to be Java 7 dependent.  Just rename
compiler.jx/local-template.properties to local.properties (and pick a
different version if you want).

-Alex

On 11/20/13 2:46 PM, "Alex Harui" <ah...@adobe.com> wrote:

>Nevermind, read your email incorrectly.  Back to upgrading...
>
>On 11/20/13 2:22 PM, "Alex Harui" <ah...@adobe.com> wrote:
>
>>Yeah, it is probably way past time to upgrade.  But you are running Java
>>7
>>on OSX 10.6?  Why is it working for you?  Maybe only the most recent
>>updates to Java 7 don't work.
>>
>>-Alex
>>
>>On 11/20/13 2:11 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>
>>>Ah, you're THAT much behind ;-) Well, for after the upgrade: welcome
>>>to the 21st century!
>>>
>>>Kidding, and good luck with your (free, as in beer) upgrade.
>>>
>>>EdB
>>>
>>>
>>>
>>>On Wed, Nov 20, 2013 at 11:02 PM, Alex Harui <ah...@adobe.com> wrote:
>>>> The Oracle site says that java 7 is not supported on OSX 10.6.
>>>>
>>>> On 11/20/13 1:57 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>
>>>>>You can have 2 (or more) versions of Java on your system. I have
>>>>>currently 1.6 (OSX native) and the Oracle JDK 1.7. You set your
>>>>>preference by setting JAVA_HOME to "$(/usr/libexec/java_home -v 1.7)".
>>>>>
>>>>>EdB
>>>>>
>>>>>
>>>>>
>>>>>On Wed, Nov 20, 2013 at 10:49 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>> Update:  My main computer is a Mac still running 10.6.8 (Snow
>>>>>>Leopard).
>>>>>> To use Java 7, I will have to upgrade my OSX to 10.7.x.  Sounds
>>>>>>scary
>>>>>>and
>>>>>> painful, and I would have pushed back except that 1) I probably will
>>>>>>get a
>>>>>> new Mac next year, and 2) Oracle premium support for Java 6 ends in
>>>>>> December 2013.
>>>>>>
>>>>>> I think that means we shouldn't keep trying to stay compatible with
>>>>>>1.6,
>>>>>> unless someone can come up with a good reason why we should.
>>>>>>
>>>>>> Anyway, I'm off to try to upgrade.  If you don't hear from me for a
>>>>>>while,
>>>>>> that's why...
>>>>>>
>>>>>> -Alex
>>>>>>
>>>>>> On 11/20/13 1:23 PM, "Alex Harui" <ah...@adobe.com> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>On 11/20/13 1:09 PM, "Gordon Smith" <go...@adobe.com> wrote:
>>>>>>>
>>>>>>>>Falcon got updated to require Java 1.7? Why was that?
>>>>>>>FalconJX uses Google Closure which seems to want 1.7.  Not sure if
>>>>>>>Falcon
>>>>>>>just also move to 1.7 or not.
>>>>>>>
>>>>>>>-Alex
>>>>>>>>
>>>>>>>>- Gordon
>>>>>>>>
>>>>>>>>-----Original Message-----
>>>>>>>>From: Erik de Bruin [mailto:erik@ixsoftware.nl]
>>>>>>>>Sent: Wednesday, November 20, 2013 8:51 AM
>>>>>>>>To: dev@flex.apache.org
>>>>>>>>Subject: Re: [FALCONJX] [FLEXJS] AS to JS compilation issues
>>>>>>>>
>>>>>>>>Yes, the latest thing: since the last compiler update we need Java
>>>>>>>>1.7,
>>>>>>>>I'm afraid.
>>>>>>>>
>>>>>>>>EdB
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>On Wed, Nov 20, 2013 at 4:25 PM, Peter Ent <pe...@adobe.com> wrote:
>>>>>>>>> I rebuilt the compiler and installed it into the FlexJS overlay
>>>>>>>>>as
>>>>>>>>> I've done before. Building the AS version of my test works fine.
>>>>>>>>> Building with Falcon JX now gives me this console output:
>>>>>>>>>
>>>>>>>>> using FlashBuilder Project Files
>>>>>>>>> FlashBuilder settings:
>>>>>>>>>     -locale
>>>>>>>>>     en_US
>>>>>>>>>     -source-path+=/Users/pent/Documents/Apache
>>>>>>>>>Flex/DataGridXcompile/src
>>>>>>>>>     -compiler.accessible=true
>>>>>>>>>     -output=/Users/pent/Documents/Apache
>>>>>>>>> Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
>>>>>>>>>     -library-path+=/Users/pent/Documents/Apache
>>>>>>>>>Flex/DataGridXcompile/libs
>>>>>>>>>     -compiler.mxml.children-as-data
>>>>>>>>>     -compiler.binding-value-change-event-type=valueChange
>>>>>>>>>     -js-output-type=FLEXJS
>>>>>>>>>     -closure-lib=/Users/pent/google/library
>>>>>>>>>     -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
>>>>>>>>>     -fb
>>>>>>>>>     /Users/pent/Documents/Apache
>>>>>>>>> Flex/DataGridXcompile/src/DataGridXcompile.mxml
>>>>>>>>> Exception in thread "main"
>>>>>>>>>java.lang.UnsupportedClassVersionError:
>>>>>>>>> com/google/javascript/jscomp/ErrorManager : Unsupported
>>>>>>>>>major.minor
>>>>>>>>> version 51.0
>>>>>>>>>         at java.lang.ClassLoader.defineClass1(Native Method)
>>>>>>>>>         at
>>>>>>>>>java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>>>>>>>>         at
>>>>>>>>>java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>>>>>>>>         at
>>>>>>>>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java
>>>>>>>>>:
>>>>>>>>>1
>>>>>>>>>41
>>>>>>>>>)
>>>>>>>>>         at
>>>>>>>>>java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>>>>>>>>         at
>>>>>>>>>java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>>>>>>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>>>>>>>>         at java.security.AccessController.doPrivileged(Native
>>>>>>>>>Method)
>>>>>>>>>         at
>>>>>>>>>java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>>>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>>>>>>         at
>>>>>>>>>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>>>>>>>         at
>>>>>>>>>org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
>>>>>>>>>         at
>>>>>>>>>org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:
>>>>>>>>>2
>>>>>>>>>6
>>>>>>>>>1)
>>>>>>>>>         at
>>>>>>>>>org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:2
>>>>>>>>>1
>>>>>>>>>9
>>>>>>>>>)
>>>>>>>>>         at
>>>>>>>>> org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Not sure if I need to update my Java or not (didn't have to do it
>>>>>>>>> yesterday).
>>>>>>>>>
>>>>>>>>> --peter
>>>>>>>>>
>>>>>>>>> On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>>>>>
>>>>>>>>>>I filed two tickets for each issue.
>>>>>>>>>>
>>>>>>>>>>Thanks. This is getting really close.
>>>>>>>>>>--peter
>>>>>>>>>>
>>>>>>>>>>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>>
>>>>>>>>>>>I second that. I'll take a look tomorrow, if you file that JIRA
>>>>>>>>>>>ticket
>>>>>>>>>>>;-)
>>>>>>>>>>>
>>>>>>>>>>>EdB
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com>
>>>>>>>>>>>wrote:
>>>>>>>>>>>> Yep, those look like bugs to me.
>>>>>>>>>>>>
>>>>>>>>>>>> -Alex
>>>>>>>>>>>>
>>>>>>>>>>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>>Hi,
>>>>>>>>>>>>>
>>>>>>>>>>>>>I am attempting to take the DataGrid, written in ActionScript,
>>>>>>>>>>>>>and
>>>>>>>>>>>>>compile it into JavaScript to see if that's a viable way to
>>>>>>>>>>>>>build
>>>>>>>>>>>>>JavaScript components - or at least get a good head start on
>>>>>>>>>>>>>writing the JavaScript. I've run into a couple of  issues
>>>>>>>>>>>>>since
>>>>>>>>>>>>>taking the most recent falcon code changes.
>>>>>>>>>>>>>
>>>>>>>>>>>>>Issue 1
>>>>>>>>>>>>>My ActionScript code reads:
>>>>>>>>>>>>>
>>>>>>>>>>>>>import org.apache.flex.core.IBeadModel;
>>>>>>>>>>>>>
>>>>>>>>>>>>>Š
>>>>>>>>>>>>>
>>>>>>>>>>>>>var sharedModel:IDataGridModel =
>>>>>>>>>>>>>_strand.getBeadByType(IBeadModel)
>>>>>>>>>>>>>as IDataGridModel;
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>I get this error while compiling:
>>>>>>>>>>>>>
>>>>>>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/static
>>>>>>>>>>>>>C
>>>>>>>>>>>>>o
>>>>>>>>>>>>>nt
>>>>>>>>>>>>>r
>>>>>>>>>>>>>ols/
>>>>>>>>>>>>>b
>>>>>>>>>>>>>ea
>>>>>>>>>>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is
>>>>>>>>>>>>>undeclared
>>>>>>>>>>>>>
>>>>>>>>>>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */
>>>>>>>>>>>>>sharedModel =
>>>>>>>>>>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(I
>>>>>>>>>>>>>B
>>>>>>>>>>>>>e
>>>>>>>>>>>>>ad
>>>>>>>>>>>>>M
>>>>>>>>>>>>>odel
>>>>>>>>>>>>>)
>>>>>>>>>>>>>,
>>>>>>>>>>>>>org.apache.flex.core.IDataGridModel);
>>>>>>>>>>>>>
>>>>>>>>>>>>>IBeadModel has an import statement. IBeadModel should be fully
>>>>>>>>>>>>>qualified, I think.
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>Issue 2
>>>>>>>>>>>>>My ActionScript code reads:
>>>>>>>>>>>>>
>>>>>>>>>>>>>import org.apache.flex.html.staticControls.List;
>>>>>>>>>>>>>
>>>>>>>>>>>>>Š
>>>>>>>>>>>>>
>>>>>>>>>>>>>for(var i:int=0; i < columns.length; i++) {
>>>>>>>>>>>>>
>>>>>>>>>>>>>    var column:List = columns[i];
>>>>>>>>>>>>>
>>>>>>>>>>>>>I get this error while compiling:
>>>>>>>>>>>>>
>>>>>>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/static
>>>>>>>>>>>>>C
>>>>>>>>>>>>>o
>>>>>>>>>>>>>nt
>>>>>>>>>>>>>r
>>>>>>>>>>>>>ols/
>>>>>>>>>>>>>b
>>>>>>>>>>>>>ea
>>>>>>>>>>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown
>>>>>>>>>>>>>type
>>>>>>>>>>>>>List
>>>>>>>>>>>>>
>>>>>>>>>>>>>    var /** @type {List} */ column = this.columns[i];
>>>>>>>>>>>>>
>>>>>>>>>>>>>                   ^
>>>>>>>>>>>>>
>>>>>>>>>>>>>What's funny about this last error is that I also have this
>>>>>>>>>>>>>ActionScript code which does not produce an error:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>>>>>>>>>>
>>>>>>>>>>>>>    var column:List = new SimpleList();
>>>>>>>>>>>>>
>>>>>>>>>>>>>The JavaScript code generated for these statement is:
>>>>>>>>>>>>>for (var /** @type {number} */ i = 0; i <
>>>>>>>>>>>>>pm.get_columnLabels().length;
>>>>>>>>>>>>>i++) {
>>>>>>>>>>>>>    var /** @type {org.apache.flex.html.staticControls.List}
>>>>>>>>>>>>>*/
>>>>>>>>>>>>>column = new org.apache.flex.html.staticControls.SimpleList();
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>I'll file a bug if it looks like my code is OK.
>>>>>>>>>>>>>
>>>>>>>>>>>>>Regards,
>>>>>>>>>>>>>Peter
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>--
>>>>>>>>>>>Ix Multimedia Software
>>>>>>>>>>>
>>>>>>>>>>>Jan Luykenstraat 27
>>>>>>>>>>>3521 VB Utrecht
>>>>>>>>>>>
>>>>>>>>>>>T. 06-51952295
>>>>>>>>>>>I. www.ixsoftware.nl
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>--
>>>>>>>>Ix Multimedia Software
>>>>>>>>
>>>>>>>>Jan Luykenstraat 27
>>>>>>>>3521 VB Utrecht
>>>>>>>>
>>>>>>>>T. 06-51952295
>>>>>>>>I. www.ixsoftware.nl
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>Ix Multimedia Software
>>>>>
>>>>>Jan Luykenstraat 27
>>>>>3521 VB Utrecht
>>>>>
>>>>>T. 06-51952295
>>>>>I. www.ixsoftware.nl
>>>>
>>>
>>>
>>>
>>>-- 
>>>Ix Multimedia Software
>>>
>>>Jan Luykenstraat 27
>>>3521 VB Utrecht
>>>
>>>T. 06-51952295
>>>I. www.ixsoftware.nl
>>
>


Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Alex Harui <ah...@adobe.com>.
Nevermind, read your email incorrectly.  Back to upgrading...

On 11/20/13 2:22 PM, "Alex Harui" <ah...@adobe.com> wrote:

>Yeah, it is probably way past time to upgrade.  But you are running Java 7
>on OSX 10.6?  Why is it working for you?  Maybe only the most recent
>updates to Java 7 don't work.
>
>-Alex
>
>On 11/20/13 2:11 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>>Ah, you're THAT much behind ;-) Well, for after the upgrade: welcome
>>to the 21st century!
>>
>>Kidding, and good luck with your (free, as in beer) upgrade.
>>
>>EdB
>>
>>
>>
>>On Wed, Nov 20, 2013 at 11:02 PM, Alex Harui <ah...@adobe.com> wrote:
>>> The Oracle site says that java 7 is not supported on OSX 10.6.
>>>
>>> On 11/20/13 1:57 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>
>>>>You can have 2 (or more) versions of Java on your system. I have
>>>>currently 1.6 (OSX native) and the Oracle JDK 1.7. You set your
>>>>preference by setting JAVA_HOME to "$(/usr/libexec/java_home -v 1.7)".
>>>>
>>>>EdB
>>>>
>>>>
>>>>
>>>>On Wed, Nov 20, 2013 at 10:49 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>> Update:  My main computer is a Mac still running 10.6.8 (Snow
>>>>>Leopard).
>>>>> To use Java 7, I will have to upgrade my OSX to 10.7.x.  Sounds scary
>>>>>and
>>>>> painful, and I would have pushed back except that 1) I probably will
>>>>>get a
>>>>> new Mac next year, and 2) Oracle premium support for Java 6 ends in
>>>>> December 2013.
>>>>>
>>>>> I think that means we shouldn't keep trying to stay compatible with
>>>>>1.6,
>>>>> unless someone can come up with a good reason why we should.
>>>>>
>>>>> Anyway, I'm off to try to upgrade.  If you don't hear from me for a
>>>>>while,
>>>>> that's why...
>>>>>
>>>>> -Alex
>>>>>
>>>>> On 11/20/13 1:23 PM, "Alex Harui" <ah...@adobe.com> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>>On 11/20/13 1:09 PM, "Gordon Smith" <go...@adobe.com> wrote:
>>>>>>
>>>>>>>Falcon got updated to require Java 1.7? Why was that?
>>>>>>FalconJX uses Google Closure which seems to want 1.7.  Not sure if
>>>>>>Falcon
>>>>>>just also move to 1.7 or not.
>>>>>>
>>>>>>-Alex
>>>>>>>
>>>>>>>- Gordon
>>>>>>>
>>>>>>>-----Original Message-----
>>>>>>>From: Erik de Bruin [mailto:erik@ixsoftware.nl]
>>>>>>>Sent: Wednesday, November 20, 2013 8:51 AM
>>>>>>>To: dev@flex.apache.org
>>>>>>>Subject: Re: [FALCONJX] [FLEXJS] AS to JS compilation issues
>>>>>>>
>>>>>>>Yes, the latest thing: since the last compiler update we need Java
>>>>>>>1.7,
>>>>>>>I'm afraid.
>>>>>>>
>>>>>>>EdB
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>On Wed, Nov 20, 2013 at 4:25 PM, Peter Ent <pe...@adobe.com> wrote:
>>>>>>>> I rebuilt the compiler and installed it into the FlexJS overlay as
>>>>>>>> I've done before. Building the AS version of my test works fine.
>>>>>>>> Building with Falcon JX now gives me this console output:
>>>>>>>>
>>>>>>>> using FlashBuilder Project Files
>>>>>>>> FlashBuilder settings:
>>>>>>>>     -locale
>>>>>>>>     en_US
>>>>>>>>     -source-path+=/Users/pent/Documents/Apache
>>>>>>>>Flex/DataGridXcompile/src
>>>>>>>>     -compiler.accessible=true
>>>>>>>>     -output=/Users/pent/Documents/Apache
>>>>>>>> Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
>>>>>>>>     -library-path+=/Users/pent/Documents/Apache
>>>>>>>>Flex/DataGridXcompile/libs
>>>>>>>>     -compiler.mxml.children-as-data
>>>>>>>>     -compiler.binding-value-change-event-type=valueChange
>>>>>>>>     -js-output-type=FLEXJS
>>>>>>>>     -closure-lib=/Users/pent/google/library
>>>>>>>>     -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
>>>>>>>>     -fb
>>>>>>>>     /Users/pent/Documents/Apache
>>>>>>>> Flex/DataGridXcompile/src/DataGridXcompile.mxml
>>>>>>>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>>>>>>>> com/google/javascript/jscomp/ErrorManager : Unsupported
>>>>>>>>major.minor
>>>>>>>> version 51.0
>>>>>>>>         at java.lang.ClassLoader.defineClass1(Native Method)
>>>>>>>>         at
>>>>>>>>java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>>>>>>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>>>>>>>         at
>>>>>>>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
>>>>>>>>1
>>>>>>>>41
>>>>>>>>)
>>>>>>>>         at
>>>>>>>>java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>>>>>>>         at
>>>>>>>>java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>>>>>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>>>>>>>         at java.security.AccessController.doPrivileged(Native
>>>>>>>>Method)
>>>>>>>>         at
>>>>>>>>java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>>>>>         at
>>>>>>>>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>>>>>>         at
>>>>>>>>org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
>>>>>>>>         at
>>>>>>>>org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:2
>>>>>>>>6
>>>>>>>>1)
>>>>>>>>         at
>>>>>>>>org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:21
>>>>>>>>9
>>>>>>>>)
>>>>>>>>         at
>>>>>>>> org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Not sure if I need to update my Java or not (didn't have to do it
>>>>>>>> yesterday).
>>>>>>>>
>>>>>>>> --peter
>>>>>>>>
>>>>>>>> On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>>>>
>>>>>>>>>I filed two tickets for each issue.
>>>>>>>>>
>>>>>>>>>Thanks. This is getting really close.
>>>>>>>>>--peter
>>>>>>>>>
>>>>>>>>>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>>
>>>>>>>>>>I second that. I'll take a look tomorrow, if you file that JIRA
>>>>>>>>>>ticket
>>>>>>>>>>;-)
>>>>>>>>>>
>>>>>>>>>>EdB
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com>
>>>>>>>>>>wrote:
>>>>>>>>>>> Yep, those look like bugs to me.
>>>>>>>>>>>
>>>>>>>>>>> -Alex
>>>>>>>>>>>
>>>>>>>>>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>>Hi,
>>>>>>>>>>>>
>>>>>>>>>>>>I am attempting to take the DataGrid, written in ActionScript,
>>>>>>>>>>>>and
>>>>>>>>>>>>compile it into JavaScript to see if that's a viable way to
>>>>>>>>>>>>build
>>>>>>>>>>>>JavaScript components - or at least get a good head start on
>>>>>>>>>>>>writing the JavaScript. I've run into a couple of  issues since
>>>>>>>>>>>>taking the most recent falcon code changes.
>>>>>>>>>>>>
>>>>>>>>>>>>Issue 1
>>>>>>>>>>>>My ActionScript code reads:
>>>>>>>>>>>>
>>>>>>>>>>>>import org.apache.flex.core.IBeadModel;
>>>>>>>>>>>>
>>>>>>>>>>>>Š
>>>>>>>>>>>>
>>>>>>>>>>>>var sharedModel:IDataGridModel =
>>>>>>>>>>>>_strand.getBeadByType(IBeadModel)
>>>>>>>>>>>>as IDataGridModel;
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>I get this error while compiling:
>>>>>>>>>>>>
>>>>>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticC
>>>>>>>>>>>>o
>>>>>>>>>>>>nt
>>>>>>>>>>>>r
>>>>>>>>>>>>ols/
>>>>>>>>>>>>b
>>>>>>>>>>>>ea
>>>>>>>>>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is
>>>>>>>>>>>>undeclared
>>>>>>>>>>>>
>>>>>>>>>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */
>>>>>>>>>>>>sharedModel =
>>>>>>>>>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IB
>>>>>>>>>>>>e
>>>>>>>>>>>>ad
>>>>>>>>>>>>M
>>>>>>>>>>>>odel
>>>>>>>>>>>>)
>>>>>>>>>>>>,
>>>>>>>>>>>>org.apache.flex.core.IDataGridModel);
>>>>>>>>>>>>
>>>>>>>>>>>>IBeadModel has an import statement. IBeadModel should be fully
>>>>>>>>>>>>qualified, I think.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>Issue 2
>>>>>>>>>>>>My ActionScript code reads:
>>>>>>>>>>>>
>>>>>>>>>>>>import org.apache.flex.html.staticControls.List;
>>>>>>>>>>>>
>>>>>>>>>>>>Š
>>>>>>>>>>>>
>>>>>>>>>>>>for(var i:int=0; i < columns.length; i++) {
>>>>>>>>>>>>
>>>>>>>>>>>>    var column:List = columns[i];
>>>>>>>>>>>>
>>>>>>>>>>>>I get this error while compiling:
>>>>>>>>>>>>
>>>>>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticC
>>>>>>>>>>>>o
>>>>>>>>>>>>nt
>>>>>>>>>>>>r
>>>>>>>>>>>>ols/
>>>>>>>>>>>>b
>>>>>>>>>>>>ea
>>>>>>>>>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown
>>>>>>>>>>>>type
>>>>>>>>>>>>List
>>>>>>>>>>>>
>>>>>>>>>>>>    var /** @type {List} */ column = this.columns[i];
>>>>>>>>>>>>
>>>>>>>>>>>>                   ^
>>>>>>>>>>>>
>>>>>>>>>>>>What's funny about this last error is that I also have this
>>>>>>>>>>>>ActionScript code which does not produce an error:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>>>>>>>>>
>>>>>>>>>>>>    var column:List = new SimpleList();
>>>>>>>>>>>>
>>>>>>>>>>>>The JavaScript code generated for these statement is:
>>>>>>>>>>>>for (var /** @type {number} */ i = 0; i <
>>>>>>>>>>>>pm.get_columnLabels().length;
>>>>>>>>>>>>i++) {
>>>>>>>>>>>>    var /** @type {org.apache.flex.html.staticControls.List} */
>>>>>>>>>>>>column = new org.apache.flex.html.staticControls.SimpleList();
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>I'll file a bug if it looks like my code is OK.
>>>>>>>>>>>>
>>>>>>>>>>>>Regards,
>>>>>>>>>>>>Peter
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>--
>>>>>>>>>>Ix Multimedia Software
>>>>>>>>>>
>>>>>>>>>>Jan Luykenstraat 27
>>>>>>>>>>3521 VB Utrecht
>>>>>>>>>>
>>>>>>>>>>T. 06-51952295
>>>>>>>>>>I. www.ixsoftware.nl
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>--
>>>>>>>Ix Multimedia Software
>>>>>>>
>>>>>>>Jan Luykenstraat 27
>>>>>>>3521 VB Utrecht
>>>>>>>
>>>>>>>T. 06-51952295
>>>>>>>I. www.ixsoftware.nl
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>--
>>>>Ix Multimedia Software
>>>>
>>>>Jan Luykenstraat 27
>>>>3521 VB Utrecht
>>>>
>>>>T. 06-51952295
>>>>I. www.ixsoftware.nl
>>>
>>
>>
>>
>>-- 
>>Ix Multimedia Software
>>
>>Jan Luykenstraat 27
>>3521 VB Utrecht
>>
>>T. 06-51952295
>>I. www.ixsoftware.nl
>


Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Alex Harui <ah...@adobe.com>.
Yeah, it is probably way past time to upgrade.  But you are running Java 7
on OSX 10.6?  Why is it working for you?  Maybe only the most recent
updates to Java 7 don't work.

-Alex

On 11/20/13 2:11 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

>Ah, you're THAT much behind ;-) Well, for after the upgrade: welcome
>to the 21st century!
>
>Kidding, and good luck with your (free, as in beer) upgrade.
>
>EdB
>
>
>
>On Wed, Nov 20, 2013 at 11:02 PM, Alex Harui <ah...@adobe.com> wrote:
>> The Oracle site says that java 7 is not supported on OSX 10.6.
>>
>> On 11/20/13 1:57 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>
>>>You can have 2 (or more) versions of Java on your system. I have
>>>currently 1.6 (OSX native) and the Oracle JDK 1.7. You set your
>>>preference by setting JAVA_HOME to "$(/usr/libexec/java_home -v 1.7)".
>>>
>>>EdB
>>>
>>>
>>>
>>>On Wed, Nov 20, 2013 at 10:49 PM, Alex Harui <ah...@adobe.com> wrote:
>>>> Update:  My main computer is a Mac still running 10.6.8 (Snow
>>>>Leopard).
>>>> To use Java 7, I will have to upgrade my OSX to 10.7.x.  Sounds scary
>>>>and
>>>> painful, and I would have pushed back except that 1) I probably will
>>>>get a
>>>> new Mac next year, and 2) Oracle premium support for Java 6 ends in
>>>> December 2013.
>>>>
>>>> I think that means we shouldn't keep trying to stay compatible with
>>>>1.6,
>>>> unless someone can come up with a good reason why we should.
>>>>
>>>> Anyway, I'm off to try to upgrade.  If you don't hear from me for a
>>>>while,
>>>> that's why...
>>>>
>>>> -Alex
>>>>
>>>> On 11/20/13 1:23 PM, "Alex Harui" <ah...@adobe.com> wrote:
>>>>
>>>>>
>>>>>
>>>>>On 11/20/13 1:09 PM, "Gordon Smith" <go...@adobe.com> wrote:
>>>>>
>>>>>>Falcon got updated to require Java 1.7? Why was that?
>>>>>FalconJX uses Google Closure which seems to want 1.7.  Not sure if
>>>>>Falcon
>>>>>just also move to 1.7 or not.
>>>>>
>>>>>-Alex
>>>>>>
>>>>>>- Gordon
>>>>>>
>>>>>>-----Original Message-----
>>>>>>From: Erik de Bruin [mailto:erik@ixsoftware.nl]
>>>>>>Sent: Wednesday, November 20, 2013 8:51 AM
>>>>>>To: dev@flex.apache.org
>>>>>>Subject: Re: [FALCONJX] [FLEXJS] AS to JS compilation issues
>>>>>>
>>>>>>Yes, the latest thing: since the last compiler update we need Java
>>>>>>1.7,
>>>>>>I'm afraid.
>>>>>>
>>>>>>EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>>On Wed, Nov 20, 2013 at 4:25 PM, Peter Ent <pe...@adobe.com> wrote:
>>>>>>> I rebuilt the compiler and installed it into the FlexJS overlay as
>>>>>>> I've done before. Building the AS version of my test works fine.
>>>>>>> Building with Falcon JX now gives me this console output:
>>>>>>>
>>>>>>> using FlashBuilder Project Files
>>>>>>> FlashBuilder settings:
>>>>>>>     -locale
>>>>>>>     en_US
>>>>>>>     -source-path+=/Users/pent/Documents/Apache
>>>>>>>Flex/DataGridXcompile/src
>>>>>>>     -compiler.accessible=true
>>>>>>>     -output=/Users/pent/Documents/Apache
>>>>>>> Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
>>>>>>>     -library-path+=/Users/pent/Documents/Apache
>>>>>>>Flex/DataGridXcompile/libs
>>>>>>>     -compiler.mxml.children-as-data
>>>>>>>     -compiler.binding-value-change-event-type=valueChange
>>>>>>>     -js-output-type=FLEXJS
>>>>>>>     -closure-lib=/Users/pent/google/library
>>>>>>>     -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
>>>>>>>     -fb
>>>>>>>     /Users/pent/Documents/Apache
>>>>>>> Flex/DataGridXcompile/src/DataGridXcompile.mxml
>>>>>>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>>>>>>> com/google/javascript/jscomp/ErrorManager : Unsupported major.minor
>>>>>>> version 51.0
>>>>>>>         at java.lang.ClassLoader.defineClass1(Native Method)
>>>>>>>         at
>>>>>>>java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>>>>>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>>>>>>         at
>>>>>>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:1
>>>>>>>41
>>>>>>>)
>>>>>>>         at
>>>>>>>java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>>>>>>         at 
>>>>>>>java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>>>>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>>>>>>         at java.security.AccessController.doPrivileged(Native
>>>>>>>Method)
>>>>>>>         at 
>>>>>>>java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>>>>         at
>>>>>>>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>>>>>         at
>>>>>>>org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
>>>>>>>         at
>>>>>>>org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:26
>>>>>>>1)
>>>>>>>         at
>>>>>>>org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:219
>>>>>>>)
>>>>>>>         at
>>>>>>> org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Not sure if I need to update my Java or not (didn't have to do it
>>>>>>> yesterday).
>>>>>>>
>>>>>>> --peter
>>>>>>>
>>>>>>> On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>>>
>>>>>>>>I filed two tickets for each issue.
>>>>>>>>
>>>>>>>>Thanks. This is getting really close.
>>>>>>>>--peter
>>>>>>>>
>>>>>>>>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>>
>>>>>>>>>I second that. I'll take a look tomorrow, if you file that JIRA
>>>>>>>>>ticket
>>>>>>>>>;-)
>>>>>>>>>
>>>>>>>>>EdB
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com>
>>>>>>>>>wrote:
>>>>>>>>>> Yep, those look like bugs to me.
>>>>>>>>>>
>>>>>>>>>> -Alex
>>>>>>>>>>
>>>>>>>>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>>>>>>
>>>>>>>>>>>Hi,
>>>>>>>>>>>
>>>>>>>>>>>I am attempting to take the DataGrid, written in ActionScript,
>>>>>>>>>>>and
>>>>>>>>>>>compile it into JavaScript to see if that's a viable way to
>>>>>>>>>>>build
>>>>>>>>>>>JavaScript components - or at least get a good head start on
>>>>>>>>>>>writing the JavaScript. I've run into a couple of  issues since
>>>>>>>>>>>taking the most recent falcon code changes.
>>>>>>>>>>>
>>>>>>>>>>>Issue 1
>>>>>>>>>>>My ActionScript code reads:
>>>>>>>>>>>
>>>>>>>>>>>import org.apache.flex.core.IBeadModel;
>>>>>>>>>>>
>>>>>>>>>>>Š
>>>>>>>>>>>
>>>>>>>>>>>var sharedModel:IDataGridModel =
>>>>>>>>>>>_strand.getBeadByType(IBeadModel)
>>>>>>>>>>>as IDataGridModel;
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>I get this error while compiling:
>>>>>>>>>>>
>>>>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticCo
>>>>>>>>>>>nt
>>>>>>>>>>>r
>>>>>>>>>>>ols/
>>>>>>>>>>>b
>>>>>>>>>>>ea
>>>>>>>>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>>>>>>>>>>
>>>>>>>>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */
>>>>>>>>>>>sharedModel =
>>>>>>>>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBe
>>>>>>>>>>>ad
>>>>>>>>>>>M
>>>>>>>>>>>odel
>>>>>>>>>>>)
>>>>>>>>>>>,
>>>>>>>>>>>org.apache.flex.core.IDataGridModel);
>>>>>>>>>>>
>>>>>>>>>>>IBeadModel has an import statement. IBeadModel should be fully
>>>>>>>>>>>qualified, I think.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>Issue 2
>>>>>>>>>>>My ActionScript code reads:
>>>>>>>>>>>
>>>>>>>>>>>import org.apache.flex.html.staticControls.List;
>>>>>>>>>>>
>>>>>>>>>>>Š
>>>>>>>>>>>
>>>>>>>>>>>for(var i:int=0; i < columns.length; i++) {
>>>>>>>>>>>
>>>>>>>>>>>    var column:List = columns[i];
>>>>>>>>>>>
>>>>>>>>>>>I get this error while compiling:
>>>>>>>>>>>
>>>>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticCo
>>>>>>>>>>>nt
>>>>>>>>>>>r
>>>>>>>>>>>ols/
>>>>>>>>>>>b
>>>>>>>>>>>ea
>>>>>>>>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown
>>>>>>>>>>>type
>>>>>>>>>>>List
>>>>>>>>>>>
>>>>>>>>>>>    var /** @type {List} */ column = this.columns[i];
>>>>>>>>>>>
>>>>>>>>>>>                   ^
>>>>>>>>>>>
>>>>>>>>>>>What's funny about this last error is that I also have this
>>>>>>>>>>>ActionScript code which does not produce an error:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>>>>>>>>
>>>>>>>>>>>    var column:List = new SimpleList();
>>>>>>>>>>>
>>>>>>>>>>>The JavaScript code generated for these statement is:
>>>>>>>>>>>for (var /** @type {number} */ i = 0; i <
>>>>>>>>>>>pm.get_columnLabels().length;
>>>>>>>>>>>i++) {
>>>>>>>>>>>    var /** @type {org.apache.flex.html.staticControls.List} */
>>>>>>>>>>>column = new org.apache.flex.html.staticControls.SimpleList();
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>I'll file a bug if it looks like my code is OK.
>>>>>>>>>>>
>>>>>>>>>>>Regards,
>>>>>>>>>>>Peter
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>--
>>>>>>>>>Ix Multimedia Software
>>>>>>>>>
>>>>>>>>>Jan Luykenstraat 27
>>>>>>>>>3521 VB Utrecht
>>>>>>>>>
>>>>>>>>>T. 06-51952295
>>>>>>>>>I. www.ixsoftware.nl
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>--
>>>>>>Ix Multimedia Software
>>>>>>
>>>>>>Jan Luykenstraat 27
>>>>>>3521 VB Utrecht
>>>>>>
>>>>>>T. 06-51952295
>>>>>>I. www.ixsoftware.nl
>>>>>
>>>>
>>>
>>>
>>>
>>>--
>>>Ix Multimedia Software
>>>
>>>Jan Luykenstraat 27
>>>3521 VB Utrecht
>>>
>>>T. 06-51952295
>>>I. www.ixsoftware.nl
>>
>
>
>
>-- 
>Ix Multimedia Software
>
>Jan Luykenstraat 27
>3521 VB Utrecht
>
>T. 06-51952295
>I. www.ixsoftware.nl


Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Ah, you're THAT much behind ;-) Well, for after the upgrade: welcome
to the 21st century!

Kidding, and good luck with your (free, as in beer) upgrade.

EdB



On Wed, Nov 20, 2013 at 11:02 PM, Alex Harui <ah...@adobe.com> wrote:
> The Oracle site says that java 7 is not supported on OSX 10.6.
>
> On 11/20/13 1:57 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>>You can have 2 (or more) versions of Java on your system. I have
>>currently 1.6 (OSX native) and the Oracle JDK 1.7. You set your
>>preference by setting JAVA_HOME to "$(/usr/libexec/java_home -v 1.7)".
>>
>>EdB
>>
>>
>>
>>On Wed, Nov 20, 2013 at 10:49 PM, Alex Harui <ah...@adobe.com> wrote:
>>> Update:  My main computer is a Mac still running 10.6.8 (Snow Leopard).
>>> To use Java 7, I will have to upgrade my OSX to 10.7.x.  Sounds scary
>>>and
>>> painful, and I would have pushed back except that 1) I probably will
>>>get a
>>> new Mac next year, and 2) Oracle premium support for Java 6 ends in
>>> December 2013.
>>>
>>> I think that means we shouldn't keep trying to stay compatible with 1.6,
>>> unless someone can come up with a good reason why we should.
>>>
>>> Anyway, I'm off to try to upgrade.  If you don't hear from me for a
>>>while,
>>> that's why...
>>>
>>> -Alex
>>>
>>> On 11/20/13 1:23 PM, "Alex Harui" <ah...@adobe.com> wrote:
>>>
>>>>
>>>>
>>>>On 11/20/13 1:09 PM, "Gordon Smith" <go...@adobe.com> wrote:
>>>>
>>>>>Falcon got updated to require Java 1.7? Why was that?
>>>>FalconJX uses Google Closure which seems to want 1.7.  Not sure if
>>>>Falcon
>>>>just also move to 1.7 or not.
>>>>
>>>>-Alex
>>>>>
>>>>>- Gordon
>>>>>
>>>>>-----Original Message-----
>>>>>From: Erik de Bruin [mailto:erik@ixsoftware.nl]
>>>>>Sent: Wednesday, November 20, 2013 8:51 AM
>>>>>To: dev@flex.apache.org
>>>>>Subject: Re: [FALCONJX] [FLEXJS] AS to JS compilation issues
>>>>>
>>>>>Yes, the latest thing: since the last compiler update we need Java 1.7,
>>>>>I'm afraid.
>>>>>
>>>>>EdB
>>>>>
>>>>>
>>>>>
>>>>>On Wed, Nov 20, 2013 at 4:25 PM, Peter Ent <pe...@adobe.com> wrote:
>>>>>> I rebuilt the compiler and installed it into the FlexJS overlay as
>>>>>> I've done before. Building the AS version of my test works fine.
>>>>>> Building with Falcon JX now gives me this console output:
>>>>>>
>>>>>> using FlashBuilder Project Files
>>>>>> FlashBuilder settings:
>>>>>>     -locale
>>>>>>     en_US
>>>>>>     -source-path+=/Users/pent/Documents/Apache
>>>>>>Flex/DataGridXcompile/src
>>>>>>     -compiler.accessible=true
>>>>>>     -output=/Users/pent/Documents/Apache
>>>>>> Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
>>>>>>     -library-path+=/Users/pent/Documents/Apache
>>>>>>Flex/DataGridXcompile/libs
>>>>>>     -compiler.mxml.children-as-data
>>>>>>     -compiler.binding-value-change-event-type=valueChange
>>>>>>     -js-output-type=FLEXJS
>>>>>>     -closure-lib=/Users/pent/google/library
>>>>>>     -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
>>>>>>     -fb
>>>>>>     /Users/pent/Documents/Apache
>>>>>> Flex/DataGridXcompile/src/DataGridXcompile.mxml
>>>>>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>>>>>> com/google/javascript/jscomp/ErrorManager : Unsupported major.minor
>>>>>> version 51.0
>>>>>>         at java.lang.ClassLoader.defineClass1(Native Method)
>>>>>>         at
>>>>>>java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>>>>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>>>>>         at
>>>>>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141
>>>>>>)
>>>>>>         at
>>>>>>java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>>>>>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>>>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>>>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>>>         at
>>>>>>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>>>>         at
>>>>>>org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
>>>>>>         at
>>>>>>org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:261)
>>>>>>         at
>>>>>>org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:219)
>>>>>>         at
>>>>>> org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Not sure if I need to update my Java or not (didn't have to do it
>>>>>> yesterday).
>>>>>>
>>>>>> --peter
>>>>>>
>>>>>> On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>>
>>>>>>>I filed two tickets for each issue.
>>>>>>>
>>>>>>>Thanks. This is getting really close.
>>>>>>>--peter
>>>>>>>
>>>>>>>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>>
>>>>>>>>I second that. I'll take a look tomorrow, if you file that JIRA
>>>>>>>>ticket
>>>>>>>>;-)
>>>>>>>>
>>>>>>>>EdB
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com>
>>>>>>>>wrote:
>>>>>>>>> Yep, those look like bugs to me.
>>>>>>>>>
>>>>>>>>> -Alex
>>>>>>>>>
>>>>>>>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>>>>>
>>>>>>>>>>Hi,
>>>>>>>>>>
>>>>>>>>>>I am attempting to take the DataGrid, written in ActionScript, and
>>>>>>>>>>compile it into JavaScript to see if that's a viable way to build
>>>>>>>>>>JavaScript components - or at least get a good head start on
>>>>>>>>>>writing the JavaScript. I've run into a couple of  issues since
>>>>>>>>>>taking the most recent falcon code changes.
>>>>>>>>>>
>>>>>>>>>>Issue 1
>>>>>>>>>>My ActionScript code reads:
>>>>>>>>>>
>>>>>>>>>>import org.apache.flex.core.IBeadModel;
>>>>>>>>>>
>>>>>>>>>>Š
>>>>>>>>>>
>>>>>>>>>>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel)
>>>>>>>>>>as IDataGridModel;
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>I get this error while compiling:
>>>>>>>>>>
>>>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticCont
>>>>>>>>>>r
>>>>>>>>>>ols/
>>>>>>>>>>b
>>>>>>>>>>ea
>>>>>>>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>>>>>>>>>
>>>>>>>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */
>>>>>>>>>>sharedModel =
>>>>>>>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBead
>>>>>>>>>>M
>>>>>>>>>>odel
>>>>>>>>>>)
>>>>>>>>>>,
>>>>>>>>>>org.apache.flex.core.IDataGridModel);
>>>>>>>>>>
>>>>>>>>>>IBeadModel has an import statement. IBeadModel should be fully
>>>>>>>>>>qualified, I think.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>Issue 2
>>>>>>>>>>My ActionScript code reads:
>>>>>>>>>>
>>>>>>>>>>import org.apache.flex.html.staticControls.List;
>>>>>>>>>>
>>>>>>>>>>Š
>>>>>>>>>>
>>>>>>>>>>for(var i:int=0; i < columns.length; i++) {
>>>>>>>>>>
>>>>>>>>>>    var column:List = columns[i];
>>>>>>>>>>
>>>>>>>>>>I get this error while compiling:
>>>>>>>>>>
>>>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticCont
>>>>>>>>>>r
>>>>>>>>>>ols/
>>>>>>>>>>b
>>>>>>>>>>ea
>>>>>>>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown
>>>>>>>>>>type
>>>>>>>>>>List
>>>>>>>>>>
>>>>>>>>>>    var /** @type {List} */ column = this.columns[i];
>>>>>>>>>>
>>>>>>>>>>                   ^
>>>>>>>>>>
>>>>>>>>>>What's funny about this last error is that I also have this
>>>>>>>>>>ActionScript code which does not produce an error:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>>>>>>>
>>>>>>>>>>    var column:List = new SimpleList();
>>>>>>>>>>
>>>>>>>>>>The JavaScript code generated for these statement is:
>>>>>>>>>>for (var /** @type {number} */ i = 0; i <
>>>>>>>>>>pm.get_columnLabels().length;
>>>>>>>>>>i++) {
>>>>>>>>>>    var /** @type {org.apache.flex.html.staticControls.List} */
>>>>>>>>>>column = new org.apache.flex.html.staticControls.SimpleList();
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>I'll file a bug if it looks like my code is OK.
>>>>>>>>>>
>>>>>>>>>>Regards,
>>>>>>>>>>Peter
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>--
>>>>>>>>Ix Multimedia Software
>>>>>>>>
>>>>>>>>Jan Luykenstraat 27
>>>>>>>>3521 VB Utrecht
>>>>>>>>
>>>>>>>>T. 06-51952295
>>>>>>>>I. www.ixsoftware.nl
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>Ix Multimedia Software
>>>>>
>>>>>Jan Luykenstraat 27
>>>>>3521 VB Utrecht
>>>>>
>>>>>T. 06-51952295
>>>>>I. www.ixsoftware.nl
>>>>
>>>
>>
>>
>>
>>--
>>Ix Multimedia Software
>>
>>Jan Luykenstraat 27
>>3521 VB Utrecht
>>
>>T. 06-51952295
>>I. www.ixsoftware.nl
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Alex Harui <ah...@adobe.com>.
The Oracle site says that java 7 is not supported on OSX 10.6.

On 11/20/13 1:57 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

>You can have 2 (or more) versions of Java on your system. I have
>currently 1.6 (OSX native) and the Oracle JDK 1.7. You set your
>preference by setting JAVA_HOME to "$(/usr/libexec/java_home -v 1.7)".
>
>EdB
>
>
>
>On Wed, Nov 20, 2013 at 10:49 PM, Alex Harui <ah...@adobe.com> wrote:
>> Update:  My main computer is a Mac still running 10.6.8 (Snow Leopard).
>> To use Java 7, I will have to upgrade my OSX to 10.7.x.  Sounds scary
>>and
>> painful, and I would have pushed back except that 1) I probably will
>>get a
>> new Mac next year, and 2) Oracle premium support for Java 6 ends in
>> December 2013.
>>
>> I think that means we shouldn't keep trying to stay compatible with 1.6,
>> unless someone can come up with a good reason why we should.
>>
>> Anyway, I'm off to try to upgrade.  If you don't hear from me for a
>>while,
>> that's why...
>>
>> -Alex
>>
>> On 11/20/13 1:23 PM, "Alex Harui" <ah...@adobe.com> wrote:
>>
>>>
>>>
>>>On 11/20/13 1:09 PM, "Gordon Smith" <go...@adobe.com> wrote:
>>>
>>>>Falcon got updated to require Java 1.7? Why was that?
>>>FalconJX uses Google Closure which seems to want 1.7.  Not sure if
>>>Falcon
>>>just also move to 1.7 or not.
>>>
>>>-Alex
>>>>
>>>>- Gordon
>>>>
>>>>-----Original Message-----
>>>>From: Erik de Bruin [mailto:erik@ixsoftware.nl]
>>>>Sent: Wednesday, November 20, 2013 8:51 AM
>>>>To: dev@flex.apache.org
>>>>Subject: Re: [FALCONJX] [FLEXJS] AS to JS compilation issues
>>>>
>>>>Yes, the latest thing: since the last compiler update we need Java 1.7,
>>>>I'm afraid.
>>>>
>>>>EdB
>>>>
>>>>
>>>>
>>>>On Wed, Nov 20, 2013 at 4:25 PM, Peter Ent <pe...@adobe.com> wrote:
>>>>> I rebuilt the compiler and installed it into the FlexJS overlay as
>>>>> I've done before. Building the AS version of my test works fine.
>>>>> Building with Falcon JX now gives me this console output:
>>>>>
>>>>> using FlashBuilder Project Files
>>>>> FlashBuilder settings:
>>>>>     -locale
>>>>>     en_US
>>>>>     -source-path+=/Users/pent/Documents/Apache
>>>>>Flex/DataGridXcompile/src
>>>>>     -compiler.accessible=true
>>>>>     -output=/Users/pent/Documents/Apache
>>>>> Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
>>>>>     -library-path+=/Users/pent/Documents/Apache
>>>>>Flex/DataGridXcompile/libs
>>>>>     -compiler.mxml.children-as-data
>>>>>     -compiler.binding-value-change-event-type=valueChange
>>>>>     -js-output-type=FLEXJS
>>>>>     -closure-lib=/Users/pent/google/library
>>>>>     -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
>>>>>     -fb
>>>>>     /Users/pent/Documents/Apache
>>>>> Flex/DataGridXcompile/src/DataGridXcompile.mxml
>>>>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>>>>> com/google/javascript/jscomp/ErrorManager : Unsupported major.minor
>>>>> version 51.0
>>>>>         at java.lang.ClassLoader.defineClass1(Native Method)
>>>>>         at 
>>>>>java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>>>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>>>>         at
>>>>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141
>>>>>)
>>>>>         at 
>>>>>java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>>>>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>>         at
>>>>>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>>>         at
>>>>>org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
>>>>>         at
>>>>>org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:261)
>>>>>         at
>>>>>org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:219)
>>>>>         at
>>>>> org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Not sure if I need to update my Java or not (didn't have to do it
>>>>> yesterday).
>>>>>
>>>>> --peter
>>>>>
>>>>> On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>
>>>>>>I filed two tickets for each issue.
>>>>>>
>>>>>>Thanks. This is getting really close.
>>>>>>--peter
>>>>>>
>>>>>>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>>
>>>>>>>I second that. I'll take a look tomorrow, if you file that JIRA
>>>>>>>ticket
>>>>>>>;-)
>>>>>>>
>>>>>>>EdB
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com>
>>>>>>>wrote:
>>>>>>>> Yep, those look like bugs to me.
>>>>>>>>
>>>>>>>> -Alex
>>>>>>>>
>>>>>>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>>>>
>>>>>>>>>Hi,
>>>>>>>>>
>>>>>>>>>I am attempting to take the DataGrid, written in ActionScript, and
>>>>>>>>>compile it into JavaScript to see if that's a viable way to build
>>>>>>>>>JavaScript components - or at least get a good head start on
>>>>>>>>>writing the JavaScript. I've run into a couple of  issues since
>>>>>>>>>taking the most recent falcon code changes.
>>>>>>>>>
>>>>>>>>>Issue 1
>>>>>>>>>My ActionScript code reads:
>>>>>>>>>
>>>>>>>>>import org.apache.flex.core.IBeadModel;
>>>>>>>>>
>>>>>>>>>Š
>>>>>>>>>
>>>>>>>>>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel)
>>>>>>>>>as IDataGridModel;
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>I get this error while compiling:
>>>>>>>>>
>>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticCont
>>>>>>>>>r
>>>>>>>>>ols/
>>>>>>>>>b
>>>>>>>>>ea
>>>>>>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>>>>>>>>
>>>>>>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */
>>>>>>>>>sharedModel =
>>>>>>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBead
>>>>>>>>>M
>>>>>>>>>odel
>>>>>>>>>)
>>>>>>>>>,
>>>>>>>>>org.apache.flex.core.IDataGridModel);
>>>>>>>>>
>>>>>>>>>IBeadModel has an import statement. IBeadModel should be fully
>>>>>>>>>qualified, I think.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>Issue 2
>>>>>>>>>My ActionScript code reads:
>>>>>>>>>
>>>>>>>>>import org.apache.flex.html.staticControls.List;
>>>>>>>>>
>>>>>>>>>Š
>>>>>>>>>
>>>>>>>>>for(var i:int=0; i < columns.length; i++) {
>>>>>>>>>
>>>>>>>>>    var column:List = columns[i];
>>>>>>>>>
>>>>>>>>>I get this error while compiling:
>>>>>>>>>
>>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticCont
>>>>>>>>>r
>>>>>>>>>ols/
>>>>>>>>>b
>>>>>>>>>ea
>>>>>>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown
>>>>>>>>>type
>>>>>>>>>List
>>>>>>>>>
>>>>>>>>>    var /** @type {List} */ column = this.columns[i];
>>>>>>>>>
>>>>>>>>>                   ^
>>>>>>>>>
>>>>>>>>>What's funny about this last error is that I also have this
>>>>>>>>>ActionScript code which does not produce an error:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>>>>>>
>>>>>>>>>    var column:List = new SimpleList();
>>>>>>>>>
>>>>>>>>>The JavaScript code generated for these statement is:
>>>>>>>>>for (var /** @type {number} */ i = 0; i <
>>>>>>>>>pm.get_columnLabels().length;
>>>>>>>>>i++) {
>>>>>>>>>    var /** @type {org.apache.flex.html.staticControls.List} */
>>>>>>>>>column = new org.apache.flex.html.staticControls.SimpleList();
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>I'll file a bug if it looks like my code is OK.
>>>>>>>>>
>>>>>>>>>Regards,
>>>>>>>>>Peter
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>--
>>>>>>>Ix Multimedia Software
>>>>>>>
>>>>>>>Jan Luykenstraat 27
>>>>>>>3521 VB Utrecht
>>>>>>>
>>>>>>>T. 06-51952295
>>>>>>>I. www.ixsoftware.nl
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>--
>>>>Ix Multimedia Software
>>>>
>>>>Jan Luykenstraat 27
>>>>3521 VB Utrecht
>>>>
>>>>T. 06-51952295
>>>>I. www.ixsoftware.nl
>>>
>>
>
>
>
>-- 
>Ix Multimedia Software
>
>Jan Luykenstraat 27
>3521 VB Utrecht
>
>T. 06-51952295
>I. www.ixsoftware.nl


Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Erik de Bruin <er...@ixsoftware.nl>.
You can have 2 (or more) versions of Java on your system. I have
currently 1.6 (OSX native) and the Oracle JDK 1.7. You set your
preference by setting JAVA_HOME to "$(/usr/libexec/java_home -v 1.7)".

EdB



On Wed, Nov 20, 2013 at 10:49 PM, Alex Harui <ah...@adobe.com> wrote:
> Update:  My main computer is a Mac still running 10.6.8 (Snow Leopard).
> To use Java 7, I will have to upgrade my OSX to 10.7.x.  Sounds scary and
> painful, and I would have pushed back except that 1) I probably will get a
> new Mac next year, and 2) Oracle premium support for Java 6 ends in
> December 2013.
>
> I think that means we shouldn't keep trying to stay compatible with 1.6,
> unless someone can come up with a good reason why we should.
>
> Anyway, I'm off to try to upgrade.  If you don't hear from me for a while,
> that's why...
>
> -Alex
>
> On 11/20/13 1:23 PM, "Alex Harui" <ah...@adobe.com> wrote:
>
>>
>>
>>On 11/20/13 1:09 PM, "Gordon Smith" <go...@adobe.com> wrote:
>>
>>>Falcon got updated to require Java 1.7? Why was that?
>>FalconJX uses Google Closure which seems to want 1.7.  Not sure if Falcon
>>just also move to 1.7 or not.
>>
>>-Alex
>>>
>>>- Gordon
>>>
>>>-----Original Message-----
>>>From: Erik de Bruin [mailto:erik@ixsoftware.nl]
>>>Sent: Wednesday, November 20, 2013 8:51 AM
>>>To: dev@flex.apache.org
>>>Subject: Re: [FALCONJX] [FLEXJS] AS to JS compilation issues
>>>
>>>Yes, the latest thing: since the last compiler update we need Java 1.7,
>>>I'm afraid.
>>>
>>>EdB
>>>
>>>
>>>
>>>On Wed, Nov 20, 2013 at 4:25 PM, Peter Ent <pe...@adobe.com> wrote:
>>>> I rebuilt the compiler and installed it into the FlexJS overlay as
>>>> I've done before. Building the AS version of my test works fine.
>>>> Building with Falcon JX now gives me this console output:
>>>>
>>>> using FlashBuilder Project Files
>>>> FlashBuilder settings:
>>>>     -locale
>>>>     en_US
>>>>     -source-path+=/Users/pent/Documents/Apache
>>>>Flex/DataGridXcompile/src
>>>>     -compiler.accessible=true
>>>>     -output=/Users/pent/Documents/Apache
>>>> Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
>>>>     -library-path+=/Users/pent/Documents/Apache
>>>>Flex/DataGridXcompile/libs
>>>>     -compiler.mxml.children-as-data
>>>>     -compiler.binding-value-change-event-type=valueChange
>>>>     -js-output-type=FLEXJS
>>>>     -closure-lib=/Users/pent/google/library
>>>>     -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
>>>>     -fb
>>>>     /Users/pent/Documents/Apache
>>>> Flex/DataGridXcompile/src/DataGridXcompile.mxml
>>>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>>>> com/google/javascript/jscomp/ErrorManager : Unsupported major.minor
>>>> version 51.0
>>>>         at java.lang.ClassLoader.defineClass1(Native Method)
>>>>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>>>         at
>>>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>>>>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>>>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>         at
>>>>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>>         at
>>>>org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
>>>>         at
>>>>org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:261)
>>>>         at
>>>>org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:219)
>>>>         at
>>>> org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)
>>>>
>>>>
>>>>
>>>>
>>>> Not sure if I need to update my Java or not (didn't have to do it
>>>> yesterday).
>>>>
>>>> --peter
>>>>
>>>> On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>
>>>>>I filed two tickets for each issue.
>>>>>
>>>>>Thanks. This is getting really close.
>>>>>--peter
>>>>>
>>>>>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>>
>>>>>>I second that. I'll take a look tomorrow, if you file that JIRA
>>>>>>ticket
>>>>>>;-)
>>>>>>
>>>>>>EdB
>>>>>>
>>>>>>
>>>>>>
>>>>>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>>> Yep, those look like bugs to me.
>>>>>>>
>>>>>>> -Alex
>>>>>>>
>>>>>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>>>
>>>>>>>>Hi,
>>>>>>>>
>>>>>>>>I am attempting to take the DataGrid, written in ActionScript, and
>>>>>>>>compile it into JavaScript to see if that's a viable way to build
>>>>>>>>JavaScript components - or at least get a good head start on
>>>>>>>>writing the JavaScript. I've run into a couple of  issues since
>>>>>>>>taking the most recent falcon code changes.
>>>>>>>>
>>>>>>>>Issue 1
>>>>>>>>My ActionScript code reads:
>>>>>>>>
>>>>>>>>import org.apache.flex.core.IBeadModel;
>>>>>>>>
>>>>>>>>Š
>>>>>>>>
>>>>>>>>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel)
>>>>>>>>as IDataGridModel;
>>>>>>>>
>>>>>>>>
>>>>>>>>I get this error while compiling:
>>>>>>>>
>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticContr
>>>>>>>>ols/
>>>>>>>>b
>>>>>>>>ea
>>>>>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>>>>>>>
>>>>>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */
>>>>>>>>sharedModel =
>>>>>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadM
>>>>>>>>odel
>>>>>>>>)
>>>>>>>>,
>>>>>>>>org.apache.flex.core.IDataGridModel);
>>>>>>>>
>>>>>>>>IBeadModel has an import statement. IBeadModel should be fully
>>>>>>>>qualified, I think.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>Issue 2
>>>>>>>>My ActionScript code reads:
>>>>>>>>
>>>>>>>>import org.apache.flex.html.staticControls.List;
>>>>>>>>
>>>>>>>>Š
>>>>>>>>
>>>>>>>>for(var i:int=0; i < columns.length; i++) {
>>>>>>>>
>>>>>>>>    var column:List = columns[i];
>>>>>>>>
>>>>>>>>I get this error while compiling:
>>>>>>>>
>>>>>>>>/Users/pent/Documents/Apache
>>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticContr
>>>>>>>>ols/
>>>>>>>>b
>>>>>>>>ea
>>>>>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown type
>>>>>>>>List
>>>>>>>>
>>>>>>>>    var /** @type {List} */ column = this.columns[i];
>>>>>>>>
>>>>>>>>                   ^
>>>>>>>>
>>>>>>>>What's funny about this last error is that I also have this
>>>>>>>>ActionScript code which does not produce an error:
>>>>>>>>
>>>>>>>>
>>>>>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>>>>>
>>>>>>>>    var column:List = new SimpleList();
>>>>>>>>
>>>>>>>>The JavaScript code generated for these statement is:
>>>>>>>>for (var /** @type {number} */ i = 0; i <
>>>>>>>>pm.get_columnLabels().length;
>>>>>>>>i++) {
>>>>>>>>    var /** @type {org.apache.flex.html.staticControls.List} */
>>>>>>>>column = new org.apache.flex.html.staticControls.SimpleList();
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>I'll file a bug if it looks like my code is OK.
>>>>>>>>
>>>>>>>>Regards,
>>>>>>>>Peter
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>--
>>>>>>Ix Multimedia Software
>>>>>>
>>>>>>Jan Luykenstraat 27
>>>>>>3521 VB Utrecht
>>>>>>
>>>>>>T. 06-51952295
>>>>>>I. www.ixsoftware.nl
>>>>>
>>>>
>>>
>>>
>>>
>>>--
>>>Ix Multimedia Software
>>>
>>>Jan Luykenstraat 27
>>>3521 VB Utrecht
>>>
>>>T. 06-51952295
>>>I. www.ixsoftware.nl
>>
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Alex Harui <ah...@adobe.com>.
Update:  My main computer is a Mac still running 10.6.8 (Snow Leopard).
To use Java 7, I will have to upgrade my OSX to 10.7.x.  Sounds scary and
painful, and I would have pushed back except that 1) I probably will get a
new Mac next year, and 2) Oracle premium support for Java 6 ends in
December 2013.

I think that means we shouldn't keep trying to stay compatible with 1.6,
unless someone can come up with a good reason why we should.

Anyway, I'm off to try to upgrade.  If you don't hear from me for a while,
that's why...

-Alex

On 11/20/13 1:23 PM, "Alex Harui" <ah...@adobe.com> wrote:

>
>
>On 11/20/13 1:09 PM, "Gordon Smith" <go...@adobe.com> wrote:
>
>>Falcon got updated to require Java 1.7? Why was that?
>FalconJX uses Google Closure which seems to want 1.7.  Not sure if Falcon
>just also move to 1.7 or not.
>
>-Alex
>>
>>- Gordon
>>
>>-----Original Message-----
>>From: Erik de Bruin [mailto:erik@ixsoftware.nl]
>>Sent: Wednesday, November 20, 2013 8:51 AM
>>To: dev@flex.apache.org
>>Subject: Re: [FALCONJX] [FLEXJS] AS to JS compilation issues
>>
>>Yes, the latest thing: since the last compiler update we need Java 1.7,
>>I'm afraid.
>>
>>EdB
>>
>>
>>
>>On Wed, Nov 20, 2013 at 4:25 PM, Peter Ent <pe...@adobe.com> wrote:
>>> I rebuilt the compiler and installed it into the FlexJS overlay as
>>> I've done before. Building the AS version of my test works fine.
>>> Building with Falcon JX now gives me this console output:
>>>
>>> using FlashBuilder Project Files
>>> FlashBuilder settings:
>>>     -locale
>>>     en_US
>>>     -source-path+=/Users/pent/Documents/Apache
>>>Flex/DataGridXcompile/src
>>>     -compiler.accessible=true
>>>     -output=/Users/pent/Documents/Apache
>>> Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
>>>     -library-path+=/Users/pent/Documents/Apache
>>>Flex/DataGridXcompile/libs
>>>     -compiler.mxml.children-as-data
>>>     -compiler.binding-value-change-event-type=valueChange
>>>     -js-output-type=FLEXJS
>>>     -closure-lib=/Users/pent/google/library
>>>     -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
>>>     -fb
>>>     /Users/pent/Documents/Apache
>>> Flex/DataGridXcompile/src/DataGridXcompile.mxml
>>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>>> com/google/javascript/jscomp/ErrorManager : Unsupported major.minor
>>> version 51.0
>>>         at java.lang.ClassLoader.defineClass1(Native Method)
>>>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>>         at 
>>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>>>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>         at 
>>>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>         at 
>>>org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
>>>         at 
>>>org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:261)
>>>         at 
>>>org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:219)
>>>         at 
>>> org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)
>>>
>>>
>>>
>>>
>>> Not sure if I need to update my Java or not (didn't have to do it
>>> yesterday).
>>>
>>> --peter
>>>
>>> On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>
>>>>I filed two tickets for each issue.
>>>>
>>>>Thanks. This is getting really close.
>>>>--peter
>>>>
>>>>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>>
>>>>>I second that. I'll take a look tomorrow, if you file that JIRA
>>>>>ticket
>>>>>;-)
>>>>>
>>>>>EdB
>>>>>
>>>>>
>>>>>
>>>>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>>> Yep, those look like bugs to me.
>>>>>>
>>>>>> -Alex
>>>>>>
>>>>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>>
>>>>>>>Hi,
>>>>>>>
>>>>>>>I am attempting to take the DataGrid, written in ActionScript, and
>>>>>>>compile it into JavaScript to see if that's a viable way to build
>>>>>>>JavaScript components - or at least get a good head start on
>>>>>>>writing the JavaScript. I've run into a couple of  issues since
>>>>>>>taking the most recent falcon code changes.
>>>>>>>
>>>>>>>Issue 1
>>>>>>>My ActionScript code reads:
>>>>>>>
>>>>>>>import org.apache.flex.core.IBeadModel;
>>>>>>>
>>>>>>>Š
>>>>>>>
>>>>>>>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel)
>>>>>>>as IDataGridModel;
>>>>>>>
>>>>>>>
>>>>>>>I get this error while compiling:
>>>>>>>
>>>>>>>/Users/pent/Documents/Apache
>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticContr
>>>>>>>ols/
>>>>>>>b
>>>>>>>ea
>>>>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>>>>>>
>>>>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */
>>>>>>>sharedModel =
>>>>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadM
>>>>>>>odel
>>>>>>>)
>>>>>>>,
>>>>>>>org.apache.flex.core.IDataGridModel);
>>>>>>>
>>>>>>>IBeadModel has an import statement. IBeadModel should be fully
>>>>>>>qualified, I think.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>Issue 2
>>>>>>>My ActionScript code reads:
>>>>>>>
>>>>>>>import org.apache.flex.html.staticControls.List;
>>>>>>>
>>>>>>>Š
>>>>>>>
>>>>>>>for(var i:int=0; i < columns.length; i++) {
>>>>>>>
>>>>>>>    var column:List = columns[i];
>>>>>>>
>>>>>>>I get this error while compiling:
>>>>>>>
>>>>>>>/Users/pent/Documents/Apache
>>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticContr
>>>>>>>ols/
>>>>>>>b
>>>>>>>ea
>>>>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown type
>>>>>>>List
>>>>>>>
>>>>>>>    var /** @type {List} */ column = this.columns[i];
>>>>>>>
>>>>>>>                   ^
>>>>>>>
>>>>>>>What's funny about this last error is that I also have this
>>>>>>>ActionScript code which does not produce an error:
>>>>>>>
>>>>>>>
>>>>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>>>>
>>>>>>>    var column:List = new SimpleList();
>>>>>>>
>>>>>>>The JavaScript code generated for these statement is:
>>>>>>>for (var /** @type {number} */ i = 0; i <
>>>>>>>pm.get_columnLabels().length;
>>>>>>>i++) {
>>>>>>>    var /** @type {org.apache.flex.html.staticControls.List} */
>>>>>>>column = new org.apache.flex.html.staticControls.SimpleList();
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>I'll file a bug if it looks like my code is OK.
>>>>>>>
>>>>>>>Regards,
>>>>>>>Peter
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>--
>>>>>Ix Multimedia Software
>>>>>
>>>>>Jan Luykenstraat 27
>>>>>3521 VB Utrecht
>>>>>
>>>>>T. 06-51952295
>>>>>I. www.ixsoftware.nl
>>>>
>>>
>>
>>
>>
>>--
>>Ix Multimedia Software
>>
>>Jan Luykenstraat 27
>>3521 VB Utrecht
>>
>>T. 06-51952295
>>I. www.ixsoftware.nl
>


Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Alex Harui <ah...@adobe.com>.

On 11/20/13 1:09 PM, "Gordon Smith" <go...@adobe.com> wrote:

>Falcon got updated to require Java 1.7? Why was that?
FalconJX uses Google Closure which seems to want 1.7.  Not sure if Falcon
just also move to 1.7 or not.

-Alex
>
>- Gordon
>
>-----Original Message-----
>From: Erik de Bruin [mailto:erik@ixsoftware.nl]
>Sent: Wednesday, November 20, 2013 8:51 AM
>To: dev@flex.apache.org
>Subject: Re: [FALCONJX] [FLEXJS] AS to JS compilation issues
>
>Yes, the latest thing: since the last compiler update we need Java 1.7,
>I'm afraid.
>
>EdB
>
>
>
>On Wed, Nov 20, 2013 at 4:25 PM, Peter Ent <pe...@adobe.com> wrote:
>> I rebuilt the compiler and installed it into the FlexJS overlay as
>> I've done before. Building the AS version of my test works fine.
>> Building with Falcon JX now gives me this console output:
>>
>> using FlashBuilder Project Files
>> FlashBuilder settings:
>>     -locale
>>     en_US
>>     -source-path+=/Users/pent/Documents/Apache Flex/DataGridXcompile/src
>>     -compiler.accessible=true
>>     -output=/Users/pent/Documents/Apache
>> Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
>>     -library-path+=/Users/pent/Documents/Apache
>>Flex/DataGridXcompile/libs
>>     -compiler.mxml.children-as-data
>>     -compiler.binding-value-change-event-type=valueChange
>>     -js-output-type=FLEXJS
>>     -closure-lib=/Users/pent/google/library
>>     -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
>>     -fb
>>     /Users/pent/Documents/Apache
>> Flex/DataGridXcompile/src/DataGridXcompile.mxml
>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>> com/google/javascript/jscomp/ErrorManager : Unsupported major.minor
>> version 51.0
>>         at java.lang.ClassLoader.defineClass1(Native Method)
>>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>         at 
>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>         at 
>>org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
>>         at 
>>org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:261)
>>         at 
>>org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:219)
>>         at 
>> org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)
>>
>>
>>
>>
>> Not sure if I need to update my Java or not (didn't have to do it
>> yesterday).
>>
>> --peter
>>
>> On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>
>>>I filed two tickets for each issue.
>>>
>>>Thanks. This is getting really close.
>>>--peter
>>>
>>>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>
>>>>I second that. I'll take a look tomorrow, if you file that JIRA
>>>>ticket
>>>>;-)
>>>>
>>>>EdB
>>>>
>>>>
>>>>
>>>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>> Yep, those look like bugs to me.
>>>>>
>>>>> -Alex
>>>>>
>>>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>
>>>>>>Hi,
>>>>>>
>>>>>>I am attempting to take the DataGrid, written in ActionScript, and
>>>>>>compile it into JavaScript to see if that's a viable way to build
>>>>>>JavaScript components - or at least get a good head start on
>>>>>>writing the JavaScript. I've run into a couple of  issues since
>>>>>>taking the most recent falcon code changes.
>>>>>>
>>>>>>Issue 1
>>>>>>My ActionScript code reads:
>>>>>>
>>>>>>import org.apache.flex.core.IBeadModel;
>>>>>>
>>>>>>Š
>>>>>>
>>>>>>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel)
>>>>>>as IDataGridModel;
>>>>>>
>>>>>>
>>>>>>I get this error while compiling:
>>>>>>
>>>>>>/Users/pent/Documents/Apache
>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticContr
>>>>>>ols/
>>>>>>b
>>>>>>ea
>>>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>>>>>
>>>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */
>>>>>>sharedModel =
>>>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadM
>>>>>>odel
>>>>>>)
>>>>>>,
>>>>>>org.apache.flex.core.IDataGridModel);
>>>>>>
>>>>>>IBeadModel has an import statement. IBeadModel should be fully
>>>>>>qualified, I think.
>>>>>>
>>>>>>
>>>>>>
>>>>>>Issue 2
>>>>>>My ActionScript code reads:
>>>>>>
>>>>>>import org.apache.flex.html.staticControls.List;
>>>>>>
>>>>>>Š
>>>>>>
>>>>>>for(var i:int=0; i < columns.length; i++) {
>>>>>>
>>>>>>    var column:List = columns[i];
>>>>>>
>>>>>>I get this error while compiling:
>>>>>>
>>>>>>/Users/pent/Documents/Apache
>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticContr
>>>>>>ols/
>>>>>>b
>>>>>>ea
>>>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown type
>>>>>>List
>>>>>>
>>>>>>    var /** @type {List} */ column = this.columns[i];
>>>>>>
>>>>>>                   ^
>>>>>>
>>>>>>What's funny about this last error is that I also have this
>>>>>>ActionScript code which does not produce an error:
>>>>>>
>>>>>>
>>>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>>>
>>>>>>    var column:List = new SimpleList();
>>>>>>
>>>>>>The JavaScript code generated for these statement is:
>>>>>>for (var /** @type {number} */ i = 0; i <
>>>>>>pm.get_columnLabels().length;
>>>>>>i++) {
>>>>>>    var /** @type {org.apache.flex.html.staticControls.List} */
>>>>>>column = new org.apache.flex.html.staticControls.SimpleList();
>>>>>>
>>>>>>
>>>>>>
>>>>>>I'll file a bug if it looks like my code is OK.
>>>>>>
>>>>>>Regards,
>>>>>>Peter
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>--
>>>>Ix Multimedia Software
>>>>
>>>>Jan Luykenstraat 27
>>>>3521 VB Utrecht
>>>>
>>>>T. 06-51952295
>>>>I. www.ixsoftware.nl
>>>
>>
>
>
>
>--
>Ix Multimedia Software
>
>Jan Luykenstraat 27
>3521 VB Utrecht
>
>T. 06-51952295
>I. www.ixsoftware.nl


RE: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Gordon Smith <go...@adobe.com>.
Falcon got updated to require Java 1.7? Why was that?

- Gordon

-----Original Message-----
From: Erik de Bruin [mailto:erik@ixsoftware.nl] 
Sent: Wednesday, November 20, 2013 8:51 AM
To: dev@flex.apache.org
Subject: Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Yes, the latest thing: since the last compiler update we need Java 1.7, I'm afraid.

EdB



On Wed, Nov 20, 2013 at 4:25 PM, Peter Ent <pe...@adobe.com> wrote:
> I rebuilt the compiler and installed it into the FlexJS overlay as 
> I've done before. Building the AS version of my test works fine. 
> Building with Falcon JX now gives me this console output:
>
> using FlashBuilder Project Files
> FlashBuilder settings:
>     -locale
>     en_US
>     -source-path+=/Users/pent/Documents/Apache Flex/DataGridXcompile/src
>     -compiler.accessible=true
>     -output=/Users/pent/Documents/Apache
> Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
>     -library-path+=/Users/pent/Documents/Apache Flex/DataGridXcompile/libs
>     -compiler.mxml.children-as-data
>     -compiler.binding-value-change-event-type=valueChange
>     -js-output-type=FLEXJS
>     -closure-lib=/Users/pent/google/library
>     -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
>     -fb
>     /Users/pent/Documents/Apache
> Flex/DataGridXcompile/src/DataGridXcompile.mxml
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> com/google/javascript/jscomp/ErrorManager : Unsupported major.minor 
> version 51.0
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>         at org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
>         at org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:261)
>         at org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:219)
>         at 
> org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)
>
>
>
>
> Not sure if I need to update my Java or not (didn't have to do it 
> yesterday).
>
> --peter
>
> On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:
>
>>I filed two tickets for each issue.
>>
>>Thanks. This is getting really close.
>>--peter
>>
>>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>
>>>I second that. I'll take a look tomorrow, if you file that JIRA 
>>>ticket
>>>;-)
>>>
>>>EdB
>>>
>>>
>>>
>>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com> wrote:
>>>> Yep, those look like bugs to me.
>>>>
>>>> -Alex
>>>>
>>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>
>>>>>Hi,
>>>>>
>>>>>I am attempting to take the DataGrid, written in ActionScript, and 
>>>>>compile it into JavaScript to see if that's a viable way to build 
>>>>>JavaScript components - or at least get a good head start on 
>>>>>writing the JavaScript. I've run into a couple of  issues since 
>>>>>taking the most recent falcon code changes.
>>>>>
>>>>>Issue 1
>>>>>My ActionScript code reads:
>>>>>
>>>>>import org.apache.flex.core.IBeadModel;
>>>>>
>>>>>Š
>>>>>
>>>>>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) 
>>>>>as IDataGridModel;
>>>>>
>>>>>
>>>>>I get this error while compiling:
>>>>>
>>>>>/Users/pent/Documents/Apache
>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticContr
>>>>>ols/
>>>>>b
>>>>>ea
>>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>>>>
>>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */ 
>>>>>sharedModel = 
>>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadM
>>>>>odel
>>>>>)
>>>>>,
>>>>>org.apache.flex.core.IDataGridModel);
>>>>>
>>>>>IBeadModel has an import statement. IBeadModel should be fully 
>>>>>qualified, I think.
>>>>>
>>>>>
>>>>>
>>>>>Issue 2
>>>>>My ActionScript code reads:
>>>>>
>>>>>import org.apache.flex.html.staticControls.List;
>>>>>
>>>>>Š
>>>>>
>>>>>for(var i:int=0; i < columns.length; i++) {
>>>>>
>>>>>    var column:List = columns[i];
>>>>>
>>>>>I get this error while compiling:
>>>>>
>>>>>/Users/pent/Documents/Apache
>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticContr
>>>>>ols/
>>>>>b
>>>>>ea
>>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown type 
>>>>>List
>>>>>
>>>>>    var /** @type {List} */ column = this.columns[i];
>>>>>
>>>>>                   ^
>>>>>
>>>>>What's funny about this last error is that I also have this 
>>>>>ActionScript code which does not produce an error:
>>>>>
>>>>>
>>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>>
>>>>>    var column:List = new SimpleList();
>>>>>
>>>>>The JavaScript code generated for these statement is:
>>>>>for (var /** @type {number} */ i = 0; i < 
>>>>>pm.get_columnLabels().length;
>>>>>i++) {
>>>>>    var /** @type {org.apache.flex.html.staticControls.List} */ 
>>>>>column = new org.apache.flex.html.staticControls.SimpleList();
>>>>>
>>>>>
>>>>>
>>>>>I'll file a bug if it looks like my code is OK.
>>>>>
>>>>>Regards,
>>>>>Peter
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>>--
>>>Ix Multimedia Software
>>>
>>>Jan Luykenstraat 27
>>>3521 VB Utrecht
>>>
>>>T. 06-51952295
>>>I. www.ixsoftware.nl
>>
>



--
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Peter Ent <pe...@adobe.com>.
I've installed Java 1.7.0_45 and set JAVA_HOME to the location reported by
java_home, then built flex-falcon and installed it into the FlexJS
overlay. I get the same error. So then I changed the Java preferences for
Flash Builder but get same error.

Do the external Flash Builder tools Alex created also need to be rebuilt
with Java 1.7?

--peter

On 11/20/13 11:50 AM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

>Yes, the latest thing: since the last compiler update we need Java
>1.7, I'm afraid.
>
>EdB
>
>
>
>On Wed, Nov 20, 2013 at 4:25 PM, Peter Ent <pe...@adobe.com> wrote:
>> I rebuilt the compiler and installed it into the FlexJS overlay as I've
>> done before. Building the AS version of my test works fine. Building
>>with
>> Falcon JX now gives me this console output:
>>
>> using FlashBuilder Project Files
>> FlashBuilder settings:
>>     -locale
>>     en_US
>>     -source-path+=/Users/pent/Documents/Apache Flex/DataGridXcompile/src
>>     -compiler.accessible=true
>>     -output=/Users/pent/Documents/Apache
>> Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
>>     -library-path+=/Users/pent/Documents/Apache
>>Flex/DataGridXcompile/libs
>>     -compiler.mxml.children-as-data
>>     -compiler.binding-value-change-event-type=valueChange
>>     -js-output-type=FLEXJS
>>     -closure-lib=/Users/pent/google/library
>>     -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
>>     -fb
>>     /Users/pent/Documents/Apache
>> Flex/DataGridXcompile/src/DataGridXcompile.mxml
>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>> com/google/javascript/jscomp/ErrorManager : Unsupported major.minor
>> version 51.0
>>         at java.lang.ClassLoader.defineClass1(Native Method)
>>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>>         at 
>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>         at 
>>org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
>>         at 
>>org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:261)
>>         at 
>>org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:219)
>>         at 
>>org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)
>>
>>
>>
>>
>> Not sure if I need to update my Java or not (didn't have to do it
>> yesterday).
>>
>> --peter
>>
>> On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>
>>>I filed two tickets for each issue.
>>>
>>>Thanks. This is getting really close.
>>>--peter
>>>
>>>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>>
>>>>I second that. I'll take a look tomorrow, if you file that JIRA ticket
>>>>;-)
>>>>
>>>>EdB
>>>>
>>>>
>>>>
>>>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>> Yep, those look like bugs to me.
>>>>>
>>>>> -Alex
>>>>>
>>>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>>
>>>>>>Hi,
>>>>>>
>>>>>>I am attempting to take the DataGrid, written in ActionScript, and
>>>>>>compile it into JavaScript to see if that's a viable way to build
>>>>>>JavaScript components - or at least get a good head start on writing
>>>>>>the
>>>>>>JavaScript. I've run into a couple of  issues since taking the most
>>>>>>recent falcon code changes.
>>>>>>
>>>>>>Issue 1
>>>>>>My ActionScript code reads:
>>>>>>
>>>>>>import org.apache.flex.core.IBeadModel;
>>>>>>
>>>>>>Š
>>>>>>
>>>>>>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as
>>>>>>IDataGridModel;
>>>>>>
>>>>>>
>>>>>>I get this error while compiling:
>>>>>>
>>>>>>/Users/pent/Documents/Apache
>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControl
>>>>>>s/
>>>>>>b
>>>>>>ea
>>>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>>>>>
>>>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */ sharedModel
>>>>>>=
>>>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadMod
>>>>>>el
>>>>>>)
>>>>>>,
>>>>>>org.apache.flex.core.IDataGridModel);
>>>>>>
>>>>>>IBeadModel has an import statement. IBeadModel should be fully
>>>>>>qualified,
>>>>>>I think.
>>>>>>
>>>>>>
>>>>>>
>>>>>>Issue 2
>>>>>>My ActionScript code reads:
>>>>>>
>>>>>>import org.apache.flex.html.staticControls.List;
>>>>>>
>>>>>>Š
>>>>>>
>>>>>>for(var i:int=0; i < columns.length; i++) {
>>>>>>
>>>>>>    var column:List = columns[i];
>>>>>>
>>>>>>I get this error while compiling:
>>>>>>
>>>>>>/Users/pent/Documents/Apache
>>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControl
>>>>>>s/
>>>>>>b
>>>>>>ea
>>>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown type
>>>>>>List
>>>>>>
>>>>>>    var /** @type {List} */ column = this.columns[i];
>>>>>>
>>>>>>                   ^
>>>>>>
>>>>>>What's funny about this last error is that I also have this
>>>>>>ActionScript
>>>>>>code which does not produce an error:
>>>>>>
>>>>>>
>>>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>>>
>>>>>>    var column:List = new SimpleList();
>>>>>>
>>>>>>The JavaScript code generated for these statement is:
>>>>>>for (var /** @type {number} */ i = 0; i <
>>>>>>pm.get_columnLabels().length;
>>>>>>i++) {
>>>>>>    var /** @type {org.apache.flex.html.staticControls.List} */
>>>>>>column
>>>>>>=
>>>>>>new org.apache.flex.html.staticControls.SimpleList();
>>>>>>
>>>>>>
>>>>>>
>>>>>>I'll file a bug if it looks like my code is OK.
>>>>>>
>>>>>>Regards,
>>>>>>Peter
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>--
>>>>Ix Multimedia Software
>>>>
>>>>Jan Luykenstraat 27
>>>>3521 VB Utrecht
>>>>
>>>>T. 06-51952295
>>>>I. www.ixsoftware.nl
>>>
>>
>
>
>
>-- 
>Ix Multimedia Software
>
>Jan Luykenstraat 27
>3521 VB Utrecht
>
>T. 06-51952295
>I. www.ixsoftware.nl


Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Erik de Bruin <er...@ixsoftware.nl>.
Yes, the latest thing: since the last compiler update we need Java
1.7, I'm afraid.

EdB



On Wed, Nov 20, 2013 at 4:25 PM, Peter Ent <pe...@adobe.com> wrote:
> I rebuilt the compiler and installed it into the FlexJS overlay as I've
> done before. Building the AS version of my test works fine. Building with
> Falcon JX now gives me this console output:
>
> using FlashBuilder Project Files
> FlashBuilder settings:
>     -locale
>     en_US
>     -source-path+=/Users/pent/Documents/Apache Flex/DataGridXcompile/src
>     -compiler.accessible=true
>     -output=/Users/pent/Documents/Apache
> Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
>     -library-path+=/Users/pent/Documents/Apache Flex/DataGridXcompile/libs
>     -compiler.mxml.children-as-data
>     -compiler.binding-value-change-event-type=valueChange
>     -js-output-type=FLEXJS
>     -closure-lib=/Users/pent/google/library
>     -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
>     -fb
>     /Users/pent/Documents/Apache
> Flex/DataGridXcompile/src/DataGridXcompile.mxml
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> com/google/javascript/jscomp/ErrorManager : Unsupported major.minor
> version 51.0
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>         at org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
>         at org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:261)
>         at org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:219)
>         at org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)
>
>
>
>
> Not sure if I need to update my Java or not (didn't have to do it
> yesterday).
>
> --peter
>
> On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:
>
>>I filed two tickets for each issue.
>>
>>Thanks. This is getting really close.
>>--peter
>>
>>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>>
>>>I second that. I'll take a look tomorrow, if you file that JIRA ticket
>>>;-)
>>>
>>>EdB
>>>
>>>
>>>
>>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com> wrote:
>>>> Yep, those look like bugs to me.
>>>>
>>>> -Alex
>>>>
>>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>>
>>>>>Hi,
>>>>>
>>>>>I am attempting to take the DataGrid, written in ActionScript, and
>>>>>compile it into JavaScript to see if that's a viable way to build
>>>>>JavaScript components - or at least get a good head start on writing
>>>>>the
>>>>>JavaScript. I've run into a couple of  issues since taking the most
>>>>>recent falcon code changes.
>>>>>
>>>>>Issue 1
>>>>>My ActionScript code reads:
>>>>>
>>>>>import org.apache.flex.core.IBeadModel;
>>>>>
>>>>>Š
>>>>>
>>>>>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as
>>>>>IDataGridModel;
>>>>>
>>>>>
>>>>>I get this error while compiling:
>>>>>
>>>>>/Users/pent/Documents/Apache
>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/
>>>>>b
>>>>>ea
>>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>>>>
>>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */ sharedModel =
>>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadModel
>>>>>)
>>>>>,
>>>>>org.apache.flex.core.IDataGridModel);
>>>>>
>>>>>IBeadModel has an import statement. IBeadModel should be fully
>>>>>qualified,
>>>>>I think.
>>>>>
>>>>>
>>>>>
>>>>>Issue 2
>>>>>My ActionScript code reads:
>>>>>
>>>>>import org.apache.flex.html.staticControls.List;
>>>>>
>>>>>Š
>>>>>
>>>>>for(var i:int=0; i < columns.length; i++) {
>>>>>
>>>>>    var column:List = columns[i];
>>>>>
>>>>>I get this error while compiling:
>>>>>
>>>>>/Users/pent/Documents/Apache
>>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/
>>>>>b
>>>>>ea
>>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown type
>>>>>List
>>>>>
>>>>>    var /** @type {List} */ column = this.columns[i];
>>>>>
>>>>>                   ^
>>>>>
>>>>>What's funny about this last error is that I also have this
>>>>>ActionScript
>>>>>code which does not produce an error:
>>>>>
>>>>>
>>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>>
>>>>>    var column:List = new SimpleList();
>>>>>
>>>>>The JavaScript code generated for these statement is:
>>>>>for (var /** @type {number} */ i = 0; i < pm.get_columnLabels().length;
>>>>>i++) {
>>>>>    var /** @type {org.apache.flex.html.staticControls.List} */ column
>>>>>=
>>>>>new org.apache.flex.html.staticControls.SimpleList();
>>>>>
>>>>>
>>>>>
>>>>>I'll file a bug if it looks like my code is OK.
>>>>>
>>>>>Regards,
>>>>>Peter
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>>--
>>>Ix Multimedia Software
>>>
>>>Jan Luykenstraat 27
>>>3521 VB Utrecht
>>>
>>>T. 06-51952295
>>>I. www.ixsoftware.nl
>>
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Peter Ent <pe...@adobe.com>.
I rebuilt the compiler and installed it into the FlexJS overlay as I've
done before. Building the AS version of my test works fine. Building with
Falcon JX now gives me this console output:

using FlashBuilder Project Files
FlashBuilder settings:
    -locale
    en_US
    -source-path+=/Users/pent/Documents/Apache Flex/DataGridXcompile/src
    -compiler.accessible=true
    -output=/Users/pent/Documents/Apache
Flex/DataGridXcompile/bin-release/DataGridXcompile.swf
    -library-path+=/Users/pent/Documents/Apache Flex/DataGridXcompile/libs
    -compiler.mxml.children-as-data
    -compiler.binding-value-change-event-type=valueChange
    -js-output-type=FLEXJS
    -closure-lib=/Users/pent/google/library
    -sdk-js-lib=/Users/pent/Desktop/apache/apache-flexjs/js/src
    -fb
    /Users/pent/Documents/Apache
Flex/DataGridXcompile/src/DataGridXcompile.mxml
Exception in thread "main" java.lang.UnsupportedClassVersionError:
com/google/javascript/jscomp/ErrorManager : Unsupported major.minor
version 51.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:337)
	at org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:261)
	at org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:219)
	at org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:181)




Not sure if I need to update my Java or not (didn't have to do it
yesterday).

--peter

On 11/19/13 4:33 PM, "Peter Ent" <pe...@adobe.com> wrote:

>I filed two tickets for each issue.
>
>Thanks. This is getting really close.
>--peter
>
>On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:
>
>>I second that. I'll take a look tomorrow, if you file that JIRA ticket
>>;-)
>>
>>EdB
>>
>>
>>
>>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com> wrote:
>>> Yep, those look like bugs to me.
>>>
>>> -Alex
>>>
>>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>>
>>>>Hi,
>>>>
>>>>I am attempting to take the DataGrid, written in ActionScript, and
>>>>compile it into JavaScript to see if that's a viable way to build
>>>>JavaScript components - or at least get a good head start on writing
>>>>the
>>>>JavaScript. I've run into a couple of  issues since taking the most
>>>>recent falcon code changes.
>>>>
>>>>Issue 1
>>>>My ActionScript code reads:
>>>>
>>>>import org.apache.flex.core.IBeadModel;
>>>>
>>>>Š
>>>>
>>>>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as
>>>>IDataGridModel;
>>>>
>>>>
>>>>I get this error while compiling:
>>>>
>>>>/Users/pent/Documents/Apache
>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/
>>>>b
>>>>ea
>>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>>>
>>>>  var /** @type {org.apache.flex.core.IDataGridModel} */ sharedModel =
>>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadModel
>>>>)
>>>>,
>>>>org.apache.flex.core.IDataGridModel);
>>>>
>>>>IBeadModel has an import statement. IBeadModel should be fully
>>>>qualified,
>>>>I think.
>>>>
>>>>
>>>>
>>>>Issue 2
>>>>My ActionScript code reads:
>>>>
>>>>import org.apache.flex.html.staticControls.List;
>>>>
>>>>Š
>>>>
>>>>for(var i:int=0; i < columns.length; i++) {
>>>>
>>>>    var column:List = columns[i];
>>>>
>>>>I get this error while compiling:
>>>>
>>>>/Users/pent/Documents/Apache
>>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/
>>>>b
>>>>ea
>>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown type
>>>>List
>>>>
>>>>    var /** @type {List} */ column = this.columns[i];
>>>>
>>>>                   ^
>>>>
>>>>What's funny about this last error is that I also have this
>>>>ActionScript
>>>>code which does not produce an error:
>>>>
>>>>
>>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>>
>>>>    var column:List = new SimpleList();
>>>>
>>>>The JavaScript code generated for these statement is:
>>>>for (var /** @type {number} */ i = 0; i < pm.get_columnLabels().length;
>>>>i++) {
>>>>    var /** @type {org.apache.flex.html.staticControls.List} */ column
>>>>=
>>>>new org.apache.flex.html.staticControls.SimpleList();
>>>>
>>>>
>>>>
>>>>I'll file a bug if it looks like my code is OK.
>>>>
>>>>Regards,
>>>>Peter
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>
>>
>>
>>-- 
>>Ix Multimedia Software
>>
>>Jan Luykenstraat 27
>>3521 VB Utrecht
>>
>>T. 06-51952295
>>I. www.ixsoftware.nl
>


Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Peter Ent <pe...@adobe.com>.
I filed two tickets for each issue.

Thanks. This is getting really close.
--peter

On 11/19/13 3:59 PM, "Erik de Bruin" <er...@ixsoftware.nl> wrote:

>I second that. I'll take a look tomorrow, if you file that JIRA ticket ;-)
>
>EdB
>
>
>
>On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com> wrote:
>> Yep, those look like bugs to me.
>>
>> -Alex
>>
>> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>>
>>>Hi,
>>>
>>>I am attempting to take the DataGrid, written in ActionScript, and
>>>compile it into JavaScript to see if that's a viable way to build
>>>JavaScript components - or at least get a good head start on writing the
>>>JavaScript. I've run into a couple of  issues since taking the most
>>>recent falcon code changes.
>>>
>>>Issue 1
>>>My ActionScript code reads:
>>>
>>>import org.apache.flex.core.IBeadModel;
>>>
>>>Š
>>>
>>>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as
>>>IDataGridModel;
>>>
>>>
>>>I get this error while compiling:
>>>
>>>/Users/pent/Documents/Apache
>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/b
>>>ea
>>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>>
>>>  var /** @type {org.apache.flex.core.IDataGridModel} */ sharedModel =
>>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadModel)
>>>,
>>>org.apache.flex.core.IDataGridModel);
>>>
>>>IBeadModel has an import statement. IBeadModel should be fully
>>>qualified,
>>>I think.
>>>
>>>
>>>
>>>Issue 2
>>>My ActionScript code reads:
>>>
>>>import org.apache.flex.html.staticControls.List;
>>>
>>>Š
>>>
>>>for(var i:int=0; i < columns.length; i++) {
>>>
>>>    var column:List = columns[i];
>>>
>>>I get this error while compiling:
>>>
>>>/Users/pent/Documents/Apache
>>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/b
>>>ea
>>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown type List
>>>
>>>    var /** @type {List} */ column = this.columns[i];
>>>
>>>                   ^
>>>
>>>What's funny about this last error is that I also have this ActionScript
>>>code which does not produce an error:
>>>
>>>
>>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>>
>>>    var column:List = new SimpleList();
>>>
>>>The JavaScript code generated for these statement is:
>>>for (var /** @type {number} */ i = 0; i < pm.get_columnLabels().length;
>>>i++) {
>>>    var /** @type {org.apache.flex.html.staticControls.List} */ column =
>>>new org.apache.flex.html.staticControls.SimpleList();
>>>
>>>
>>>
>>>I'll file a bug if it looks like my code is OK.
>>>
>>>Regards,
>>>Peter
>>>
>>>
>>>
>>>
>>>
>>>
>>
>
>
>
>-- 
>Ix Multimedia Software
>
>Jan Luykenstraat 27
>3521 VB Utrecht
>
>T. 06-51952295
>I. www.ixsoftware.nl


Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Erik de Bruin <er...@ixsoftware.nl>.
I second that. I'll take a look tomorrow, if you file that JIRA ticket ;-)

EdB



On Tue, Nov 19, 2013 at 9:42 PM, Alex Harui <ah...@adobe.com> wrote:
> Yep, those look like bugs to me.
>
> -Alex
>
> On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:
>
>>Hi,
>>
>>I am attempting to take the DataGrid, written in ActionScript, and
>>compile it into JavaScript to see if that's a viable way to build
>>JavaScript components - or at least get a good head start on writing the
>>JavaScript. I've run into a couple of  issues since taking the most
>>recent falcon code changes.
>>
>>Issue 1
>>My ActionScript code reads:
>>
>>import org.apache.flex.core.IBeadModel;
>>
>>Š
>>
>>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as
>>IDataGridModel;
>>
>>
>>I get this error while compiling:
>>
>>/Users/pent/Documents/Apache
>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/bea
>>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>>
>>  var /** @type {org.apache.flex.core.IDataGridModel} */ sharedModel =
>>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadModel),
>>org.apache.flex.core.IDataGridModel);
>>
>>IBeadModel has an import statement. IBeadModel should be fully qualified,
>>I think.
>>
>>
>>
>>Issue 2
>>My ActionScript code reads:
>>
>>import org.apache.flex.html.staticControls.List;
>>
>>Š
>>
>>for(var i:int=0; i < columns.length; i++) {
>>
>>    var column:List = columns[i];
>>
>>I get this error while compiling:
>>
>>/Users/pent/Documents/Apache
>>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/bea
>>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown type List
>>
>>    var /** @type {List} */ column = this.columns[i];
>>
>>                   ^
>>
>>What's funny about this last error is that I also have this ActionScript
>>code which does not produce an error:
>>
>>
>>for(var i:int=0; i < pm.columnLabels.length; i++) {
>>
>>    var column:List = new SimpleList();
>>
>>The JavaScript code generated for these statement is:
>>for (var /** @type {number} */ i = 0; i < pm.get_columnLabels().length;
>>i++) {
>>    var /** @type {org.apache.flex.html.staticControls.List} */ column =
>>new org.apache.flex.html.staticControls.SimpleList();
>>
>>
>>
>>I'll file a bug if it looks like my code is OK.
>>
>>Regards,
>>Peter
>>
>>
>>
>>
>>
>>
>



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FALCONJX] [FLEXJS] AS to JS compilation issues

Posted by Alex Harui <ah...@adobe.com>.
Yep, those look like bugs to me.

-Alex

On 11/19/13 12:27 PM, "Peter Ent" <pe...@adobe.com> wrote:

>Hi,
>
>I am attempting to take the DataGrid, written in ActionScript, and
>compile it into JavaScript to see if that's a viable way to build
>JavaScript components - or at least get a good head start on writing the
>JavaScript. I've run into a couple of  issues since taking the most
>recent falcon code changes.
>
>Issue 1
>My ActionScript code reads:
>
>import org.apache.flex.core.IBeadModel;
>
>Š
>
>var sharedModel:IDataGridModel = _strand.getBeadByType(IBeadModel) as
>IDataGridModel;
>
>
>I get this error while compiling:
>
>/Users/pent/Documents/Apache
>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/bea
>ds/DataGridView.js:84: ERROR - variable IBeadModel is undeclared
>
>  var /** @type {org.apache.flex.core.IDataGridModel} */ sharedModel =
>org.apache.flex.utils.Language.as(this._strand.getBeadByType(IBeadModel),
>org.apache.flex.core.IDataGridModel);
>
>IBeadModel has an import statement. IBeadModel should be fully qualified,
>I think.
>
>
>
>Issue 2
>My ActionScript code reads:
>
>import org.apache.flex.html.staticControls.List;
>
>Š
>
>for(var i:int=0; i < columns.length; i++) {
>
>    var column:List = columns[i];
>
>I get this error while compiling:
>
>/Users/pent/Documents/Apache
>Flex/DataGridXcompile/bin/js-debug/org/apache/flex/html/staticControls/bea
>ds/DataGridView.js:121: WARNING - Bad type annotation. Unknown type List
>
>    var /** @type {List} */ column = this.columns[i];
>
>                   ^
>
>What's funny about this last error is that I also have this ActionScript
>code which does not produce an error:
>
>
>for(var i:int=0; i < pm.columnLabels.length; i++) {
>
>    var column:List = new SimpleList();
>
>The JavaScript code generated for these statement is:
>for (var /** @type {number} */ i = 0; i < pm.get_columnLabels().length;
>i++) {
>    var /** @type {org.apache.flex.html.staticControls.List} */ column =
>new org.apache.flex.html.staticControls.SimpleList();
>
>
>
>I'll file a bug if it looks like my code is OK.
>
>Regards,
>Peter
>
>
>
>
>
>