flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Martin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FLEX-25045) ResourceManager.getInstance().getString() returns "undefined" instead of null
Date Fri, 12 Dec 2014 22:19:13 GMT

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

Chris Martin resolved FLEX-25045.
---------------------------------
    Resolution: Fixed

we now properly return null if someone supplies a unknown resourceName and a valid local bundle
to target.

> ResourceManager.getInstance().getString() returns "undefined" instead of null
> -----------------------------------------------------------------------------
>
>                 Key: FLEX-25045
>                 URL: https://issues.apache.org/jira/browse/FLEX-25045
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Runtime Localization
>    Affects Versions: Adobe Flex SDK 3.5 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Chris Martin
>              Labels: easyfix, easytest
>
> Steps to reproduce:
> 1. Create a resource bundle with key value pairs
> 2. Load the resource bundle in your application and add them to the resourcemanager instance
> 3. Use the ResourceManager.getInstance().getString() method with a key that is not in
the resource bundle along with a local and put the return value in a string
> {code:html}
> <s:Label text="{resourceManager.getString('text', 'not-a-key', null, 'en_US')}"/>
> {code}
>  
>  Actual Results:
>  The return value is undefined as a string
>  
>  Expected Results:
>  The return (according to the docs) should be null



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message