0 Replies Latest reply on Dec 11, 2009 6:46 AM by Paul Reilly

    [svn:fx-trunk] 12848: * Another batch of compiler fixes.

    Paul Reilly Level 1

      Revision: 12848

      Revision: 12848

      Author:   preilly@adobe.com

      Date:     2009-12-11 06:46:13 -0800 (Fri, 11 Dec 2009)

      Log Message:

      ***********

      • Another batch of compiler fixes.

       

      QE notes:

      Doc notes:

      Bugs: SDK-24472, SDK-14213, SDK-24555

      Reviewer: Corey, Mike M.

      Cycloner: Gaurav

      Tests run: full cyclone

      Is noteworthy for integration: Yes, the SwcDynamicArchive.java change

                                     should reduce memory use in FB.

      Code-level description of changes:

       

        modules/swfutils/src/java/flash/localization/LocalizationManager.java

       

          Added "locale" variable and initialized it to Locale.getDefault().

       

          Replaced use of Locale.getDefault() with "locale" variable.

       

          Added setLocale().

       

        modules/antTasks/src/flex/ant/MxmlcTask.java

        modules/antTasks/src/flex/ant/CompcTask.java

       

          Added user-locale option.

       

        modules/compiler/src/java/flex2/configuration_en.properties

       

          Added user-locale description.

       

        modules/compiler/src/java/flex2/tools/oem/internal/OEMUtil.java

       

          Modified setupLocalizationManager() to only create a new

          LocalizationManager if one hasn't been setup already.

       

          Removed "finally { clean() }" from all local methods.  It was

          clearing out the LocalizationManager, which was causing the

          configured locale to be lost.  flex2.tools.oem.Application and

          flex2.tools.oem.Library already call OEMUtil.clean(), so it

          doesn't need to be called here.

       

        modules/compiler/src/java/flex2/compiler/common/Configuration.java

       

          Added cfgUserLocale().

       

        modules/compiler/src/java/flex2/compiler/config/ConfigurationException_en.properties

       

          Added UserLocaleNotAvailable message.

       

        modules/compiler/src/java/flex2/compiler/config/ConfigurationException.java

       

          Added UserLocaleNotAvailable class.

       

        compiler/src/java/flex2/compiler/media/FontTranscoder.java

       

          Modified getURL() to handle fonts in a SWC subdirectory.  This

          fixes SDK-24555.

       

        compiler/src/java/flex2/compiler/swc/SwcDynamicArchive.java

       

          Modified save() to close and null out "out".  This fixes SDK-24472.

       

      Ticket Links:

      ***********

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

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

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

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

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

       

      Modified Paths:

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

          flex/sdk/trunk/modules/antTasks/src/flex/ant/CompcTask.java

          flex/sdk/trunk/modules/antTasks/src/flex/ant/MxmlcTask.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/ConfigurationException.jav a

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/ConfigurationException_en. properties

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/media/FontTranscoder.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/swc/SwcDynamicArchive.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/configuration_en.properties

          flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMUtil.java

          flex/sdk/trunk/modules/swfutils/src/java/flash/localization/LocalizationManager.java