[
https://issues.apache.org/jira/browse/FLEX-27228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13646407#comment-13646407
]
Justin Mclean commented on FLEX-27228:
--------------------------------------
Greg Dove pointed out that this is a Flash Player issue.
Some issue exists in Tamarin:
http://hg.mozilla.org/tamarin-redux/file/5571cf86fc68/core/DictionaryGlue.cpp#l63
Same issue as a Flash Player bug:
https://bugbase.adobe.com/index.cfm?event=bug&id=2928300
> [flex_next] XML object doesn't work as key to Dictionary
> --------------------------------------------------------
>
> Key: FLEX-27228
> URL: https://issues.apache.org/jira/browse/FLEX-27228
> Project: Apache Flex
> Issue Type: Bug
> Components: .Unspecified - Framework
> Affects Versions: Adobe Flex SDK Previous
> Environment: Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
> Priority: Minor
> Labels: easytest
>
> Steps to reproduce:
> Run the following code:
> var dictionary:Dictionary = new Dictionary(); // or new
> Dictionary(true)
> var p:XML =
> <root>
> <node label="Monkeys">
> <node label="South America">
> <node label="Coastal"/>
> <node label="Inland"/>
> </node>
> <node label="Africa" isBranch="true"/>
> <node label="Asia" isBranch="true"/>
> </node>
> </root>;
> dictionary[p] = true;
>
> // get the first child and then get its parent.
> var c1:XML = p.children()[0];
> var cp:XML = c1.parent();
>
> var b:Boolean = p === cp; // true
> var s:* = dictionary[p]; // true
> var s1:* = dictionary[cp]; // undefined
> trace(b, s, s1);
>
> Actual Results:
> true true undefined
>
> Expected Results:
> true true true
>
> Workaround (if any):
> Use an array with indexOf() instead of using a Dictionary. (Potentially much
> slower though.)
--
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