Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E5859F567 for ; Wed, 17 Apr 2013 03:37:22 +0000 (UTC) Received: (qmail 33121 invoked by uid 500); 17 Apr 2013 03:37:21 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 32697 invoked by uid 500); 17 Apr 2013 03:37:17 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 32636 invoked by uid 99); 17 Apr 2013 03:37:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Apr 2013 03:37:16 +0000 Date: Wed, 17 Apr 2013 03:37:15 +0000 (UTC) From: "Justin Mclean (JIRA)" To: dev@flex.apache.org Message-ID: In-Reply-To: References: 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. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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