0 Replies Latest reply on Apr 2, 2009 9:05 AM by (Paul_Reilly)

    [svn:fx-trunk] 5874: * Fixed missing skins issue.

    Level 1
      Revision: 5874
      Author: preilly@adobe.com
      Date: 2009-04-02 10:05:11 -0700 (Thu, 02 Apr 2009)

      Log Message:
      -----------
      * Fixed missing skins issue. The cause was that PreLink was trying to
      get a NameMappings object contained within the TypeTable stored in
      the main CompilationUnit's context. There were two problems with
      this. First, it only works for Mxml based main units and second,
      the TypeTable is only put into the context when the Mxml document is
      compiled from scratch. When an Mxml document comes from the
      incremental cache, a TypeTable isn't created and stored in the
      context.

      tests Passed: checkintests, incremental compilation of flex4test and
      running of the SWF's

      Needs QA: YES

      Needs DOC: NO

      API Change: NO

      Reviewer: Pete F.

      Code-level description of changes:

      tools/PreLink.java

      Modified processMainUnit() to use CompilerAPI.getNameMappings()
      instead of getNameMappings().

      Removed getNameMappings().

      compiler/css/StyleModule.java

      Modified getQualifiedClassName() by removing check for a null
      nameMappings and replaced it with an assert.

      compiler/mxml/MxmlCompiler.java

      Made TYPE_TABLE non-public, so it won't be used outside the scope
      of an Mxml compilation.

      Modified Paths:
      --------------
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleModule.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/MxmlCompiler.java
      flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java