flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Mclean (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-27228) [flex_next] XML object doesn't work as key to Dictionary
Date Wed, 01 May 2013 06:02:16 GMT

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

Justin Mclean updated FLEX-27228:
---------------------------------

    Labels: easytest  (was: easyfix easytest)
    
> [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

Mime
View raw message