Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 2648 invoked from network); 24 Jul 2009 08:19:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jul 2009 08:19:32 -0000 Received: (qmail 62969 invoked by uid 500); 24 Jul 2009 08:20:37 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 62898 invoked by uid 500); 24 Jul 2009 08:20:37 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 62888 invoked by uid 99); 24 Jul 2009 08:20:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2009 08:20:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2009 08:20:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C8626234C004 for ; Fri, 24 Jul 2009 01:20:14 -0700 (PDT) Message-ID: <1008351982.1248423614806.JavaMail.jira@brutus> Date: Fri, 24 Jul 2009 01:20:14 -0700 (PDT) From: "Derek Baum (JIRA)" To: dev@felix.apache.org Subject: [jira] Created: (FELIX-1408) [gogo] coercion of args to match varargs method is inconsistent MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [gogo] coercion of args to match varargs method is inconsistent --------------------------------------------------------------- Key: FELIX-1408 URL: https://issues.apache.org/jira/browse/FELIX-1408 Project: Felix Issue Type: Bug Components: Gogo Reporter: Derek Baum Assignee: Derek Baum Priority: Minor gogo coerces the supplied arguments to match those required by the method. when the last parameter of a method is an array, gogo will coerce all remaining args into the array. For example: echo is defined as String echo(Object[] args); > echo d e f d e f above, gogo has coerced the 3 arguments into a single args[] array argument > list = [a b c] a b c > echo $list a b c here gogo passes the list directly, rather than as the first element of an array However, this is inconsistent when extra args are given: echo $list x x a b c The bug here is that the argument 'x' appears as the first, rather than the last argument to echo echo x $list x [a, b, c] The bug here is that the list is no longer expanded. The result should be: x a b c -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.