0 Replies Latest reply on Jul 23, 2008 10:41 AM by (Paul_Reilly)

    [svn] 2594: For the following:

    Level 1
      Revision: 2594<br />Author:   preilly@adobe.com<br />Date:     2008-07-23 11:41:51 -0700 (Wed, 23 Jul 2008)<br /><br />Log Message:<br />-----------<br />For the following:<br /><br />  <?xml version="1.0" encoding="utf-8"?><br />  <mx:Application xmlns="http://ns.adobe.com/mxml/2009" xmlns:mx="library:adobe/flex/halo"><br />    <Graphic ><br />      <Model/><br />    </Graphic><br />  </mx:Application><br /><br />Two initializers were being created.  One for the top level variable,<br />created via ModelBuilder's registerModel() call.  The other for the<br />Graphic.content default property.  Both initializers were creating a<br />RHS initializer function, which was causing a duplicate function<br />error.  This fix just suppresses the creation of the top level<br />variable and it's associated initializer, if the Model isn't toplevel.<br />I suspect no one has run into this before, because most visual<br />components don't have an untyped property, which is set to a Model.<br />Very rare edge case.<br /><br />tests Passed: checkintests<br /><br />Needs QA: YES<br /><br />Needs DOC: NO<br /><br />Bug fixes: SDK-16039<br /><br />API Change: NO<br /><br />Reviewer: clucier<br /><br />Code-level description of changes:<br /> <br />  DocumentBuilder.java<br /><br />    Modified ModelBuilder constructor call to pass in null for the parent.<br /><br />  ModelBuilder.java<br /><br />    Added parent variable and modified constructor to set it.<br /><br />    Modified analyze(ModelNode) to pass in (parent == null) for the<br />    toplevel param of registerModel().<br /><br />  AbstractBuilder.java<br /><br />    Modified ModelBuilder constructor call to pass in model for the parent.<br /><br />Ticket Links:<br />------------<br />    http://bugs.adobe.com/jira/browse/utf-8<br />    http://bugs.adobe.com/jira/browse/SDK-16039<br /><br />Modified Paths:<br />--------------<br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/AbstractBuilder.java <br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/DocumentBuilder.java <br />    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/builder/ModelBuilder.java