0 Replies Latest reply on Aug 13, 2009 11:31 AM by Paul Reilly

    [svn:fx-trunk] 9272: * Fixed asserts when compiling SDK projects with Flash Builder.

    Paul Reilly

      Revision: 9272

      Author:   preilly@adobe.com

      Date:     2009-08-13 11:31:45 -0700 (Thu, 13 Aug 2009)

       

      Log Message:

      ***********

      • Fixed asserts when compiling SDK projects with Flash Builder.

       

      QE notes:

      Doc notes:

      Bugs: SDK-22560

      Reviewer: Peter D.

      Cycloner: Gaurav

      Tests run: checkintests

      Is noteworthy for integration:

      Code-level description of changes:

       

        Source.java

       

          Modified copyCompilationUnit() by adding a useHistories flag,

          which toggles copying the MultiNames from the histories back into

          the dependency lists when making a copy.  For copies of SWC based

          CompilationUnits, we don't want to use the histories.  For all

          other CompilationUnits, we do.

       

          Modified copy() to pass true into copyCompilationUnit().

       

        CompilerSwcContext.java

       

          Modified getSource() to pass false into copyCompilationUnit().

       

        as3/As3Compiler.java

       

          Removed a bunch of unnecessary checks for a null symbolTable.

       

          Modified analyze1() to clear out fa_unresolved.

       

          Modified transferDependencies() to handle UnresolvedNamespace

          instances by plucking out the name of the wrapped ReferenceValue.

       

      Ticket Links:

      ************

          http://bugs.adobe.com/jira/browse/SDK-22560

       

      Modified Paths:

      **************

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerSwcContext.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/Source.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/As3Compiler.java