You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Maurice Amsellem (JIRA)" <ji...@apache.org> on 2014/03/19 09:47:42 UTC

[jira] [Updated] (FLEX-33421) Broken metadata RequiresLicense

     [ https://issues.apache.org/jira/browse/FLEX-33421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maurice Amsellem updated FLEX-33421:
------------------------------------

    Fix Version/s: Apache Flex 4.13.0

> Broken metadata RequiresLicense
> -------------------------------
>
>                 Key: FLEX-33421
>                 URL: https://issues.apache.org/jira/browse/FLEX-33421
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Apache Flex 4.9.0
>            Reporter: Frédéric Leroy
>            Assignee: Maurice Amsellem
>              Labels: metadata
>             Fix For: Apache Flex 4.13.0
>
>         Attachments: test-apache-flex-4.9-compatibility-library.fxpl, test-apache-flex-4.9-compatiblity-using-library.fxp
>
>
> A library build with Flex SDK 4.5 and using the metadata RequiresLicense fails at runtime: the handler class is not found.
> In attachment:
> test-apache-flex-4.9-compatibility-library.fxpl -- defines a library build with Flex 4.5 that defines a LicenseHandler class and a RequiresLicenseHandler class
> test-apache-flex-4-9-compatibility-using-library -- defines an application build with Flex 4.9.1 that uses the RequiresLicenseHandler class.
> To reproduce:
> 1. Run (in a debug player) the application from the xxx-using-library project
> Observed:
> An exception is thrown:
> ReferenceError: Error #1065: Variable LicenseHandler is not defined.
> 	at RequiresLicenseHandler()[C:\Workspace\elixir-dev\test-apache-flex-4.9-compatibility-library\src\RequiresLicenseHandler.as:9]
> 	at Main()[C:\Workspace\elixir-dev\test-apache-flex-4.9-compatiblity-using-library\src\Main.mxml:7]
> 	at _Main_mx_managers_SystemManager/create()[_Main_mx_managers_SystemManager.as:51]
> 	at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/framework/src/mx/managers/systemClasses/ChildManager.as:319]
> 	at mx.managers::SystemManager/initializeTopLevelWindow()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/framework/src/mx/managers/SystemManager.as:3065]
> 	at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::kickOff()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/framework/src/mx/managers/SystemManager.as:2851]
> 	at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/framework/src/mx/managers/SystemManager.as:2731]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at mx.preloaders::Preloader/timerHandler()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/framework/src/mx/preloaders/Preloader.as:550]
> 	at flash.utils::Timer/_timerDispatch()
> 	at flash.utils::Timer/tick()
> Expected:
> The application should display "Loaded".
> Workaround:
> In the xxx-using-library project, change the Link Type for the library to "Runtime Shared Library".
> In FlashBuilder this is option is located in the project properties/Flex Build Path/Library Path/Build path libraries, select the library, extend the node, and change the Link Type.



--
This message was sent by Atlassian JIRA
(v6.2#6252)