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

Maurice Amsellem resolved FLEX-33421.
-------------------------------------

    Resolution: Fixed

Fixed and committed to:  Repository: flex-sdk
Updated Branches:  refs/heads/develop d509ef12a -> e7611cbb5

Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/3e3c597c
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/3e3c597c
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/3e3c597c

(Thanks to Alex for the fix proposal)

> 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
>         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)

Reply via email to