[
https://issues.apache.org/jira/browse/FLEX-34472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14240362#comment-14240362
]
Chris Martin commented on FLEX-34472:
-------------------------------------
Hey Alex,
Started to take a look at this one. I created a project like you suggested with
Apache Flex 4.13.0, and unfortunately I'm unable to reproduce your issue. I'm
getting the expected "null" returned result.
As Justin Mclean pointed out in the original ticket, the key
[[1|https://issues.apache.org/jira/browse/FLEX-25045?focusedCommentId=14168417&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14168417]]
is in the findBundle function. The function will return null as it cannot find
the requested resourceName in the bundle. So the findBundle function in the SDK
must have a valid pair of bundleName and resourceName to return a match.
I do worry that we still have an issue here, but it just might not be where we
are looking. Can you provide some sample code that demonstrates the issue?
With that i'll be able to dig right in where the problem is.
Regards,
Chris
> ResourceManager.getInstance().getString() returns "undefined" instead of null
> -----------------------------------------------------------------------------
>
> Key: FLEX-34472
> URL: https://issues.apache.org/jira/browse/FLEX-34472
> Project: Apache Flex
> Issue Type: Bug
> Affects Versions: Apache Flex 4.13.0
> Reporter: Alexander Scheibe
> Assignee: Chris Martin
>
> not sure who to re-open the bug
> https://issues.apache.org/jira/browse/FLEX-25045 but the problem is there
> again:
> 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
> Actual Results:
> The return value is "undefined" as a string
> Expected Results:
> The return (according to the docs) should be null
> Also the current implementation always creates a new string rather than
> returning a string from the resource bundle content.
> var value:String=String(resourceBundle.content[resourceName]);
> because for strings: String(x) is the same as new String(x) and not a typecast
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)