You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/17 09:59:15 UTC

[jira] [Assigned] (FLEX-12202) Passing a false Boolean argument to ArrayUtil.toArray() returns an empty Array instead of an Array with one member equal to false.

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

Justin Mclean reassigned FLEX-12202:
------------------------------------

    Assignee: Justin Mclean
    
> Passing a false Boolean argument to ArrayUtil.toArray() returns an empty Array instead of an Array with one member equal to false.
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-12202
>                 URL: https://issues.apache.org/jira/browse/FLEX-12202
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: .Unspecified - Framework
>    Affects Versions: Adobe Flex SDK 2.0.1 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Browser: Firefox 2.x
> Language Found: English
>            Reporter: Adobe JIRA
>            Assignee: Justin Mclean
>              Labels: easyfix, easytest
>
> Steps to reproduce:
> 1a. var test:Array = ArrayUtil.toArray(false);
>    - OR -
> 1b. var test:Array = ArrayUtil.toArray(new Boolean(false));
>  
>  Actual Results:
>  test.length == 0
>  
>  Expected Results:
>  test.length == 1
>  test[0] == false
>  
>  Workaround (if any):
>  Instead of passing a native boolean false argument or a Boolean object set to false, you can pass a single argument array as such:
>  var test:Array = ArrayUtil.toArray( [ false ] );

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