[ 
https://issues.apache.org/jira/browse/FLEX-18697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13637753#comment-13637753
 ] 

Justin Mclean edited comment on FLEX-18697 at 4/22/13 3:51 AM:
---------------------------------------------------------------

Also ObjectProxy and AMF encoding uses this with the includeReadOnly option may 
also fix some subtle bugs in those.
                
      was (Author: jmclean):
    Also ObjectProxy uses this with includeReadOnly = true may also fix some 
subtle bug in that.
                  
> ObjectUtil.getCacheKey does not make cache key correctly
> --------------------------------------------------------
>
>                 Key: FLEX-18697
>                 URL: https://issues.apache.org/jira/browse/FLEX-18697
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: .Unspecified - Framework
>    Affects Versions: Adobe Flex SDK 3.2 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Nick Kwiatkowski
>              Labels: easyfix, easytest
>             Fix For: Apache Flex 4.10.0
>
>
> affected class: mx.utils.ObjectUtil
> 1. call ObjectUtil.getClassInfo with options.includeReadonly = true 
> 2. call ObjectUtil.getClassInfo with options.includeReadonly = false 
> The result of step2 is same as the result of step1. 
> Because step2 just return cached result of step1. 
> see source code of getCacheKey function of ObjectUtil class 
> /* ---------+---------+---------+---------+---------+ */ 
> var value:String = options[flag] as String; 
> if (value != null) 
>     key += value; 
> /* ---------+---------+---------+---------+---------+ */ 
> code of "options["includeReadOnly"] as String" is always null 
> Replacing that code to the following line will fix the problem:
> key += options[flag].toString();

--
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

Reply via email to