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-11728) Passing a false Boolean argument to ArrayUtil.toArray() returns an empty Array instead of an Array with one member equal to false.
Date Wed, 17 Apr 2013 03:37:15 GMT

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

Justin Mclean updated FLEX-11728:
---------------------------------

    Labels: easyfix easytest  (was: )
    
> Passing a false Boolean argument to ArrayUtil.toArray() returns an empty Array instead
of an Array with one member equal to false.
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-11728
>                 URL: https://issues.apache.org/jira/browse/FLEX-11728
>             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
>              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

Mime
View raw message