From dave at badgers-in-foil.co.uk Tue Oct 2 22:59:14 2007 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Tue, 02 Oct 2007 22:59:14 +0000 Subject: [metaas-dev] [SVN metaas] add missing support for accessing parsed 'new' expressions Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20071002/da4613a6/attachment.html From dave at badgers-in-foil.co.uk Sat Oct 6 23:12:11 2007 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 06 Oct 2007 23:12:11 +0000 Subject: [metaas-dev] [SVN metaas] Small improvements to test support code. Expose assertions for external use. References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20071006/2a0bb1aa/attachment.htm From dave at badgers-in-foil.co.uk Sat Oct 6 23:13:37 2007 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 06 Oct 2007 23:13:37 +0000 Subject: [metaas-dev] [SVN metaas] don't obscure the real reason for test failure when 'expr' is null References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20071006/4fc5789b/attachment.htm From dave at badgers-in-foil.co.uk Sat Oct 6 23:14:11 2007 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 06 Oct 2007 23:14:11 +0000 Subject: [metaas-dev] [SVN metaas] remove debug code References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20071006/c1ec932a/attachment.htm From dave at badgers-in-foil.co.uk Sat Oct 6 23:15:47 2007 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 06 Oct 2007 23:15:47 +0000 Subject: [metaas-dev] [SVN metaas] Must treat CONDITION nodes as 'parenthetic' also References: Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20071006/1bb892a4/attachment.htm From dave at badgers-in-foil.co.uk Sat Oct 6 23:18:00 2007 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 06 Oct 2007 23:18:00 +0000 Subject: [metaas-dev] [SVN metaas] Allow the construction of statements using ASExpression instances, as well as using Strings Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20071006/7afb5c79/attachment-0001.htm From akserg at gmail.com Wed Oct 24 06:00:29 2007 From: akserg at gmail.com (Sergey Akopkokhyants) Date: Wed, 24 Oct 2007 08:00:29 +0200 Subject: [metaas-dev] SyntaxException: Unexpected token SUPER Message-ID: Hi, there. Version metaas-0.8-SNAPSHOT. Code updated. I've got next error: eclipse.buildId=unknown java.version=1.5.0_07 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_ZA Framework arguments: -product org.eclipse.sdk.ide -pdelaunch Command-line arguments: -product org.eclipse.sdk.ide -data C:\java\workspace5/../runtime-EclipseApplication -dev file:C:/java/workspace5/.metadata/.plugins/org.eclipse.pde.core/CairngormFlexAssistant/dev.properties -pdelaunch -os win32 -ws win32 -arch x86 Error Wed Oct 24 07:52:37 GMT+02:00 2007 Problems occurred when invoking code from plug-in: "org.eclipse.jface". uk.co.badgersinfoil.metaas.SyntaxException: Unexpected token SUPER in "super(ApplicationController.EVENT_SET_INFORMATION);" at line 1 at uk.co.badgersinfoil.metaas.impl.ASTUtils.buildSyntaxException( ASTUtils.java:199) at uk.co.badgersinfoil.metaas.impl.AS3FragmentParser.parseStatement( AS3FragmentParser.java:31) at uk.co.badgersinfoil.metaas.impl.ASTStatementList.addStmt( ASTStatementList.java:44) at uk.co.badgersinfoil.metaas.impl.ASTASMethod.addStmt(ASTASMethod.java:95) at cairngormflex.assistant.flexfactory.impl.EventClass.build( EventClass.java:52) at cairngormflex.assistant.flexfactory.impl.FlexClass.createUnit( FlexClass.java:191) at cairngormflex.assistant.flexfactory.impl.EventClass.( EventClass.java:39) at cairngormflex.assistant.flexfactory.Framework.buildCode(Framework.java :180) at cairngormflex.assistant.wizard.flex.FlexWizardPage.onEnter( FlexWizardPage.java:149) at cairngormflex.assistant.wizard.analyse.AnalyseWizardPage.fillOtherFields (AnalyseWizardPage.java:311) at cairngormflex.assistant.wizard.analyse.AnalyseWizardPage.onEnter( AnalyseWizardPage.java:279) at cairngormflex.assistant.wizard.service.SelectServiceWizardPage.updateStatus( SelectServiceWizardPage.java:295) at cairngormflex.assistant.wizard.service.SelectServiceWizardPage.updateControl (SelectServiceWizardPage.java:219) at cairngormflex.assistant.wizard.service.SelectServiceWizardPage.onEnter( SelectServiceWizardPage.java:263) at cairngormflex.assistant.wizard.java.SelectMethodWizardPage.selectionChanged( SelectMethodWizardPage.java:113) at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java :839) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:843) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149) at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged( StructuredViewer.java:837) at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect( StructuredViewer.java:1143) at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected( StructuredViewer.java:1163) at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent( OpenStrategy.java:236) at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:230) at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:404) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java :123) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3325) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:181) at org.eclipse.jface.action.Action.runWithEvent(Action.java:499) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection( ActionContributionItem.java:539) at org.eclipse.jface.action.ActionContributionItem.access$2( ActionContributionItem.java:488) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent( ActionContributionItem.java:400) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java :419) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator$1.run( PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication( EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start( EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java :400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java :177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) Caused by: NoViableAltException(157!=[439:1: statement : ( ( LCURLY )=> block | declarationStatement | expressionStatement | ifStatement | forEachStatement | forStatement | whileStatement | doWhileStatement | withStatement | switchStatement | breakStatement | continueStatement | returnStatement | throwStatement | tryStatement | defaultXMLNamespaceStatement | SEMI );]) at org.asdt.core.internal.antlr.AS3Parser.statement(AS3Parser.java:4611) at uk.co.badgersinfoil.metaas.impl.AS3FragmentParser.parseStatement( AS3FragmentParser.java:29) ... 57 more Sergey. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20071024/407c00a5/attachment.htm From dave at badgers-in-foil.co.uk Sat Oct 27 13:53:22 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sat, 27 Oct 2007 13:53:22 +0000 Subject: [metaas-dev] SyntaxException: Unexpected token SUPER In-Reply-To: References: Message-ID: <20071027135321.GA23734@badgers-in-foil.co.uk> On Wed, Oct 24, 2007 at 08:00:29AM +0200, Sergey Akopkokhyants wrote: > Version metaas-0.8-SNAPSHOT. Code updated. > I've got next error: > Caused by: NoViableAltException(157!=[439:1: statement : ( ( LCURLY )=> > block | declarationStatement | expressionStatement | ifStatement | > forEachStatement | forStatement | whileStatement | doWhileStatement | > withStatement | switchStatement | breakStatement | continueStatement | > returnStatement | throwStatement | tryStatement | > defaultXMLNamespaceStatement | SEMI );]) > at org.asdt.core.internal.antlr.AS3Parser.statement(AS3Parser.java:4611) I'm looking at, http://livedocs.adobe.com/specs/actionscript/3/as3_specification129.html but can you show some of your sample AS3 code, to confirm my understanding of the syntax? ta, dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sat Oct 27 14:10:14 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Sat, 27 Oct 2007 14:10:14 +0000 Subject: [metaas-dev] SyntaxException: Unexpected token SUPER In-Reply-To: <20071027135321.GA23734@badgers-in-foil.co.uk> References: <20071027135321.GA23734@badgers-in-foil.co.uk> Message-ID: <20071027141009.GB23734@badgers-in-foil.co.uk> On Sat, Oct 27, 2007 at 01:53:22PM +0000, David Holroyd wrote: > On Wed, Oct 24, 2007 at 08:00:29AM +0200, Sergey Akopkokhyants wrote: > > Version metaas-0.8-SNAPSHOT. Code updated. > > I've got next error: > > > Caused by: NoViableAltException(157!=[439:1: statement : ( ( LCURLY )=> > > block | declarationStatement | expressionStatement | ifStatement | > > forEachStatement | forStatement | whileStatement | doWhileStatement | > > withStatement | switchStatement | breakStatement | continueStatement | > > returnStatement | throwStatement | tryStatement | > > defaultXMLNamespaceStatement | SEMI );]) > > at org.asdt.core.internal.antlr.AS3Parser.statement(AS3Parser.java:4611) > > I'm looking at, > > http://livedocs.adobe.com/specs/actionscript/3/as3_specification129.html > > but can you show some of your sample AS3 code, to confirm my > understanding of the syntax? Actually, I suspect you have a super-statement, rather than a super-expression, http://livedocs.adobe.com/specs/actionscript/3/as3_specification152.html ? dave -- http://david.holroyd.me.uk/ From dave at badgers-in-foil.co.uk Sat Oct 27 15:25:53 2007 From: dave at badgers-in-foil.co.uk (dave at badgers-in-foil.co.uk) Date: Sat, 27 Oct 2007 15:25:53 +0000 Subject: [metaas-dev] [SVN metaas] basic support for 'super'-statements Message-ID: An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20071027/54c8b860/attachment-0001.htm From akserg at gmail.com Tue Oct 30 13:15:56 2007 From: akserg at gmail.com (Sergey Akopkokhyants) Date: Tue, 30 Oct 2007 15:15:56 +0200 Subject: [metaas-dev] SyntaxException: Unexpected token SUPER Message-ID: Hi, there. Here I put some information from FlexBuilder help: http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001634.html . SuperExpression from http://livedocs.adobe.com/specs/actionscript/3/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=as3_specification129.htmlmean to use "f" as function name in " super.f(a,b,c)" but if you invoke super class constructor from you constructor you invoke super(a,b,c). If I use old lib: ? jaxmejs-0.5.2.jar, ? metaas-0.7.jar, ? antlr-2.7.6.jar, ? stringtemplate-2.3b9.jar, ? antlr-20070101.jar I've got next result: *package framework.control{* * import com.adobe.cairngorm.control.CairngormEvent;* * /*** * * Event comment* * */* * [Bindable]* * public class SetInformationEvent extends CairngormEvent {* * public var name:String;* * public var count:Number;* * public var amount:Number;* * public function SetInformationEvent(name:String, count:Number, amount:Number) {* * super( ApplicationController.EVENT_SET_INFORMATION);* * this.name = name;* * this.count = count;* * this.amount = amount;* * }* * }* *}* This class compiled without any problem in FlexBuilder and mxmlc.exe. CairngormEvent got next source: *package com.adobe.cairngorm.control* *{* * import flash.events.Event;* * * * /*** * * The CairngormEvent class is mandatory for Cairngorm event dispatching. * * * It is used to differentiate Cairngorm events * * * from events raised by the underlying Flex framework (or* * * similar).* * *

For more information on how event dispatching works in Cairngorm, * * * please check with CairngormEventDispatcher.

* * *

* * * Events are typically broadcast as the result of a user gesture occuring* * * in the application, such as a button click, a menu selection, a double* * * click, a drag and drop operation, etc. * * *

* * ** * * @see com.adobe.cairngorm.control.CairngormEventDispatcher* * */* * public class CairngormEvent extends Event* * {* * /*** * * The data property can be used to hold information to be passed with the event* * * in cases where the developer does not want to extend the CairngormEvent class.* * * However, it is recommended that specific classes are created for each type* * * of event to be dispatched.* * */* * public var data : *;* * * * /*** * * Constructor, takes the event name (type) and data object (defaults to null)* * * and also defaults the standard Flex event properties bubbles and cancelable* * * to true and false respectively.* * */* * public function CairngormEvent( type : String, bubbles : Boolean = false, cancelable : Boolean = false )* * {* * super( type, bubbles, cancelable );* * }* * }* *}* But if I use new lib: ? antlr-05-14-2007.17.jar ? antlr-2.7.7.jar ? jaxmejs-0.5.2.jar ? metaas-0.8-SNAPSHOT.jar ? stringtemplate-3.0.jar Result: *Generate exception*. Sergey, -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20071030/196ef3b5/attachment-0001.htm From dave at badgers-in-foil.co.uk Tue Oct 30 13:34:00 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Tue, 30 Oct 2007 13:34:00 +0000 Subject: [metaas-dev] SyntaxException: Unexpected token SUPER In-Reply-To: References: Message-ID: <20071030133359.GA10131@badgers-in-foil.co.uk> On Tue, Oct 30, 2007 at 03:15:56PM +0200, Sergey Akopkokhyants wrote: > Here I put some information from FlexBuilder help: > http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001634.html Ok, so it's the super-statement that you want. > If I use old lib: > - jaxmejs-0.5.2.jar, > - metaas-0.7.jar, > - antlr-2.7.6.jar, > - stringtemplate-2.3b9.jar, > - antlr-20070101.jar > I've got next result: > This class compiled without any problem in FlexBuilder and mxmlc.exe. Could be that the grammar included in 0.7 didn't recognise 'super' as a keyword yet. > But if I use new lib: > - antlr-05-14-2007.17.jar > - antlr-2.7.7.jar > - jaxmejs-0.5.2.jar > - metaas-0.8-SNAPSHOT.jar > - stringtemplate-3.0.jar > Result: *Generate exception*. Can you update your metaas sources (to revision 539) and try again? I've added support for 'super(..)' (but not the 'super.f(..)' form). ta, dave -- http://david.holroyd.me.uk/ From akserg at gmail.com Wed Oct 31 12:44:20 2007 From: akserg at gmail.com (Sergey Akopkokhyants) Date: Wed, 31 Oct 2007 14:44:20 +0200 Subject: [metaas-dev] SyntaxException: Unexpected token SUPER (David Holroyd) Message-ID: Hi, David. > Can you update your metaas sources (to revision 539) and try again? I updated to 539 and rebuild project. All test passed. I've got error message from Cobertura: Cobertura: Loaded information on 87 classes. Cobertura: Saved information on 87 classes. [INFO] [cobertura:check {execution: default}] [INFO] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file Cobertura: Loaded information on 140 classes. [ERROR] Project failed check. Total branch coverage rate of 0.0% is below 92.0% Project failed check. Total line coverage rate of 0.0% is below 86.0% But anywhere - it works fine. Thanks, Sergey. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.badgers-in-foil.co.uk/pipermail/metaas-dev/attachments/20071031/b3a9778e/attachment.htm From dave at badgers-in-foil.co.uk Wed Oct 31 15:10:12 2007 From: dave at badgers-in-foil.co.uk (David Holroyd) Date: Wed, 31 Oct 2007 15:10:12 +0000 Subject: [metaas-dev] SyntaxException: Unexpected token SUPER (David Holroyd) In-Reply-To: References: Message-ID: <20071031151006.GC26816@badgers-in-foil.co.uk> On Wed, Oct 31, 2007 at 02:44:20PM +0200, Sergey Akopkokhyants wrote: > All test passed. I've got error message from Cobertura: > [ERROR] Project failed check. Total branch coverage rate of 0.0% is below 92.0% > Project failed check. Total line coverage rate of 0.0% is below 86.0% Ah yes, cobertura plugin 2.1 is broken. I need to commit a change to pom.xml so that the older release is used. > But anywhere - it works fine. Excelent! dave -- http://david.holroyd.me.uk/