0 Replies Latest reply on Apr 12, 2010 12:32 PM by Darrell Loverin

    [svn:fx-4.x] 15346: Generate a compiler warning for incorrect usage of modules and sub-applications .

    Darrell Loverin Level 4

      Revision: 15346

      Revision: 15346

      Author:   dloverin@adobe.com

      Date:     2010-04-12 12:31:58 -0700 (Mon, 12 Apr 2010)

      Log Message:

      ***********

      Generate a compiler warning for incorrect usage of modules and sub-applications.

       

      This fix generates a compiler warning when a module is referenced by name in another module or application. The problem with doing this that is it defeats the purpose of using a module because all the module dependencies are linked into the parent module or application. A warning is also generated when an application is directly referenced in a module or application. The recommended solution is to use an interface.

       

      This fix does not address the RTE directly but removing the module or application reference resolves the RTE.

       

      Limitation:

      The warning is limited to the case where source for the referenced module or application comes from the source path, not from a swc.

       

      QE notes: See above.

      Doc notes: None

      Bugs: SDK-26120

      Reviewer: Alex, Paul

      Tests run: checkintests, Modules, PerModuleStyles

      Is noteworthy for integration: No

       

      Ticket Links:

      ***********

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

       

      Modified Paths:

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

          flex/sdk/branches/4.x/frameworks/projects/framework/src/mx/modules/ModuleBase.as

          flex/sdk/branches/4.x/modules/compiler/src/java/flex2/compiler/mxml/lang/StandardDefs.jav a

          flex/sdk/branches/4.x/modules/compiler/src/java/flex2/tools/PreLink.java

          flex/sdk/branches/4.x/modules/compiler/src/java/flex2/tools_en.properties