Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2BB8910896 for ; Wed, 19 Mar 2014 08:45:45 +0000 (UTC) Received: (qmail 8291 invoked by uid 500); 19 Mar 2014 08:45:44 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 8266 invoked by uid 500); 19 Mar 2014 08:45:44 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 8253 invoked by uid 99); 19 Mar 2014 08:45:43 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Mar 2014 08:45:43 +0000 Date: Wed, 19 Mar 2014 08:45:43 +0000 (UTC) From: "Maurice Amsellem (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (FLEX-33421) Broken metadata RequiresLicense MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-33421?page=3Dcom.atlassia= n.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=C3=A9d=C3=A9ric Leroy > Assignee: Maurice Amsellem > Labels: metadata > Attachments: test-apache-flex-4.9-compatibility-library.fxpl, tes= t-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 buil= d with Flex 4.5 that defines a LicenseHandler class and a RequiresLicenseHa= ndler class > test-apache-flex-4-9-compatibility-using-library -- defines an applicatio= n 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 pro= ject > Observed: > An exception is thrown: > ReferenceError: Error #1065: Variable LicenseHandler is not defined. > =09at RequiresLicenseHandler()[C:\Workspace\elixir-dev\test-apache-flex-4= .9-compatibility-library\src\RequiresLicenseHandler.as:9] > =09at Main()[C:\Workspace\elixir-dev\test-apache-flex-4.9-compatiblity-us= ing-library\src\Main.mxml:7] > =09at _Main_mx_managers_SystemManager/create()[_Main_mx_managers_SystemMa= nager.as:51] > =09at mx.managers.systemClasses::ChildManager/initializeTopLevelWindow()[= /Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projects/framework/s= rc/mx/managers/systemClasses/ChildManager.as:319] > =09at mx.managers::SystemManager/initializeTopLevelWindow()[/Users/justin= mclean/Documents/ApacheFlexSDK/frameworks/projects/framework/src/mx/manager= s/SystemManager.as:3065] > =09at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/intern= al::kickOff()[/Users/justinmclean/Documents/ApacheFlexSDK/frameworks/projec= ts/framework/src/mx/managers/SystemManager.as:2851] > =09at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/intern= al::preloader_completeHandler()[/Users/justinmclean/Documents/ApacheFlexSDK= /frameworks/projects/framework/src/mx/managers/SystemManager.as:2731] > =09at flash.events::EventDispatcher/dispatchEventFunction() > =09at flash.events::EventDispatcher/dispatchEvent() > =09at mx.preloaders::Preloader/timerHandler()[/Users/justinmclean/Documen= ts/ApacheFlexSDK/frameworks/projects/framework/src/mx/preloaders/Preloader.= as:550] > =09at flash.utils::Timer/_timerDispatch() > =09at 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 th= e node, and change the Link Type. -- This message was sent by Atlassian JIRA (v6.2#6252)