My first Flex bug

I just logged my first bug against Flex:

I’m not sure if it’s actually a problem with the compiler or with FlexBuilder.  My guess is that a compiler bug is not properly handled by the UI — which makes it hard for me to track down, since the UI problem may be masking the underlying issue.

No doubt, the root cause is some bad coding on my part.  But bad code shouldn’t be able to break the compiler, and a compiler failure shouldn’t be able to break the UI.  To be more specific, it doesn’t break the UI, but it seems that there’s no way to correct the error, recompile and continue.  Once it breaks, I need to restart FlexBuilder to be able to recompile.  But if the code that triggers the compiler bug isn’t fixed, it’ll come back up on restart.  Not very useful for debugging. I suppose I should know what I did wrong and just fix it, but if developers knew everything you wouldn’t need compilers.

Anyway, I’d probably scrap Flex right about now, and mutter something about half-baked betas released to production, but because Adobe is having a Bug Quash next weekend, and I’m going, I’ll try to figure out more information about it and take it with me.

I’ll be doubly impressed if I get more than a “can’t repro” or “as designed”, though I’d be impressed enough if someone actually look at it at all.

I won’t bother posting my project that triggered it, though I hope to be able to narrow it down, and maybe even trigger it with just the SDK, but here’s the stack trace which FlexBuilder helpfully pointed me to:

!SESSION 2009-03-20 13:30:39.171 ———————————————– eclipse.buildId=unknown java.version=1.5.0_11 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 !ENTRY com.adobe.flexbuilder.project 4 43 2009-03-20 13:33:28.109 !MESSAGE Uncaught exception in compiler !STACK 0 java.lang.ClassCastException: macromedia.asc.parser.MetaDataEvaluator$KeyValuePair at macromedia.asc.parser.MetaDataEvaluator.evaluate( at macromedia.asc.parser.SetExpressionNode.evaluate( at macromedia.asc.parser.MetaDataEvaluator.evaluate( at macromedia.asc.parser.MemberExpressionNode.evaluate( at macromedia.asc.parser.MetaDataEvaluator.evaluate( at macromedia.asc.parser.VariableBindingNode.evaluate( at macromedia.asc.parser.MetaDataEvaluator.evaluate( at macromedia.asc.parser.ListNode.evaluate( at macromedia.asc.parser.MetaDataEvaluator.evaluate( at macromedia.asc.parser.VariableDefinitionNode.evaluate( at macromedia.asc.parser.MetaDataEvaluator.evaluate( at macromedia.asc.parser.ClassDefinitionNode.evaluate( at macromedia.asc.parser.MetaDataEvaluator.evaluate( at macromedia.asc.parser.StatementListNode.evaluate( at macromedia.asc.parser.MetaDataEvaluator.evaluate( at macromedia.asc.parser.ProgramNode.evaluate( at flex2.compiler.as3.Compiler.analyze3( at flex2.compiler.mxml.InterfaceCompiler.analyze3( at flex2.compiler.mxml.Compiler.analyze3( at flex2.compiler.API.analyze( at flex2.compiler.API.analyze( at flex2.compiler.API.batch2( at flex2.compiler.API.batch( at flex2.compiler.API.compile( at at at at at com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$MyBuilder.mybuild( at at at at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildItem(Unknown Source) at Source) at Source) at$ at at at at$ at at at at at at at

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s