[ https://issues.apache.org/jira/browse/FLEX-21825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean updated FLEX-21825: --------------------------------- Labels: easyfix (was: ) > Incorrect Type Coercion in ResourceManagerImpl > ---------------------------------------------- > > Key: FLEX-21825 > URL: https://issues.apache.org/jira/browse/FLEX-21825 > Project: Apache Flex > Issue Type: Bug > Components: Runtime Localization > Affects Versions: Adobe Flex SDK 3.4 (Release) > Environment: Affected OS(s): All OS Platforms > Affected OS(s): All OS Platforms > Language Found: English > Reporter: Adobe JIRA > Labels: easyfix > > Steps to reproduce: > 1. Create your own runtime resource bundle class that implements the > IResourceBundle interface. > 2. Add the object to the ResourceManager > (ResourceManager.getInstance().addResourceBundle(object:IResourceBundle)) > 3. Try to get content from the ResourceManager that exists in your custom > resource bundle class > > Actual Results: > Type Coercion failed: cannot convert [OBJECT THAT IMPLEMENTS IResourceBundle] > to mx.resources.ResourceBundle. > > Expected Results: > No runtime error. > > Workaround (if any): > Rather than implementing the interface, extend ResourceBundle. > The bug is in "findResourceBundleWithResource(bundleName:String, > resourceName:String):IResourceBundle" in ResourceManagerImpl. > {code} > var bundle:ResourceBundle = bundleMap[bundleName]; > {code} > Should be: > {code} > var bundle:IResourceBundle = bundleMap[bundleName]; > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira