Hi Tobias, Unfortunately, this is a basic problem in how the beta 1 compiler processes MXML components that subclass other MXML components. So the only "workaround", to use the term loosely, is to make sure that a given MXML component has no other MXML components in its superclass chain.
Not a feasible alternative in any nontrivial situation, obviously... but FWIW you can make your stripped-down example work by turning COMP_List.mxml into COMP_List.as: package com.foo.bar.COMP { import mx.controls.List; public class COMP_List extends List { public function COMP_List() { super(); } } } Alternatively, you can leave COMP_List alone, and make DSHB_List an AS component in the analogous way ("import COMP.COMP_List; public class DSHB_List extends COMP_List ..."). In either case, there's a single MXML component in the class chain, which will avoid the error. (Having an AS class extend an MXML component is a less well-trodden use-case, but there's no fundamental rule against it.) This is definitely fixed in beta2. In the meantime, apologies - it's definitely something we should have caught before b1 went out the door. Basil -----Original Message----- From: Roger Gonzalez Sent: Thursday, March 09, 2006 12:39 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Internal compiler error I know this isn't going to help you at the moment, but I just tested your code against our latest compiler, and it compiled without any error. I'm CC'ing the guy on our team who I suspect fixed the issue, to see if there are any workarounds to hold you until Beta 2 is out. Cheers, -rg > -----Original Message----- > From: flexcoders@yahoogroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of tobiaspatton > Sent: Thursday, March 09, 2006 9:03 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Internal compiler error > > Hello; > > I'm stuck! When compiling my project I am getting an internal > compiler error, and can't for the life of me figure out why. I've > reproduced the problem with a very small set of files that implement > the same structure as my project. > > Essentially, I have a custom component, COMP_List, that derives from > mx:List and implements some custom behaviors. I have another custom > component DSHB_List that dervies from COMP_List. The main > application instantiates a DSHB_List object. > > > /com/foo/bar/COMP/COMP_List.mxml: > > <?xml version="1.0" encoding="utf-8"?> > <mx:List xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"> > </mx:List> > > /com/foo/bar/DSHB/DSHB_List.mxml: > > <?xml version="1.0" encoding="utf-8"?> > <COMP:COMP_List xmlns:COMP="com.foo.bar.COMP.*"> > </COMP:COMP_List> > > /CompilerError.mxml: > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" > xmlns:DSHB="com.foo.bar.DSHB.*" > xmlns="*" > layout="absolute"> > <DSHB:DSHB_List/> > </mx:Application> > > This is the command line I'm using to compile, along with the > compiler output: > > C:\Program Files\Adobe\Flex Builder 2 Beta 1\Flex Framework 2 > \bin>mxmlc --load-config ..\frameworks\flex-config.xml "c:\Documents > and Settings\tpatton\My > Documents\Flex\CompilerError\CompilerError.mxml" > > Loading configuration file C:\Program Files\Adobe\Flex Builder 2 > Beta 1\Flex Framework 2\frameworks\flex-config.xml, root element > flex-config > Initial setup: 343ms > Loaded 6 SWCs: 594ms > License Service: Flex 2.0 Developer Edition enabled (beta period > ends May 1, 2006) > Compiling... > Error: null > > java.lang.AssertionError > at flex2.compiler.mxml.lang.StandardDefs.isIUIComponent > (StandardDefs.java:267) > at > flex2.compiler.mxml.builder.ComponentBuilder.constructComponent > (ComponentBuilder.java:78) > at flex2.compiler.mxml.builder.ApplicationBuilder.analyze > (ApplicationBuilder.java:102) > at flex2.compiler.mxml.dom.Node.analyze(Node.java:36) > at flex2.compiler.mxml.ImplementationCompiler.parse > (ImplementationCompiler.java:130) > at flex2.compiler.mxml.Compiler.parse(Compiler.java:73) > at flex2.compiler.API.parse(API.java:1104) > at flex2.compiler.API.parse(API.java:1072) > at flex2.compiler.API.batchInner(API.java:156) > at flex2.compiler.API.batch(API.java:260) > at flex2.compiler.API.compile(API.java:361) > at flex2.compiler.API.compile(API.java:289) > at flex2.tools.Compiler.main(Compiler.java:167) > Total time: 3062ms > Peak memory usage: 49 MB (Heap: 31, Non-Heap: 18) > > Am I doing something obviously wrong here? Does anyone have any > suggestions as to how I can track down an eliminate the internal > compiler error? > > Thanks. > Tobias > > > > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/