Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 99045 invoked from network); 3 May 2010 08:47:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 May 2010 08:47:20 -0000 Received: (qmail 84292 invoked by uid 500); 3 May 2010 08:47:20 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 84160 invoked by uid 500); 3 May 2010 08:47:18 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 84151 invoked by uid 99); 3 May 2010 08:47:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 08:47:17 +0000 X-ASF-Spam-Status: No, hits=-1379.2 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 May 2010 08:47:16 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o438kuMh024964 for ; Mon, 3 May 2010 08:46:56 GMT Message-ID: <31117734.11361272876416133.JavaMail.jira@thor> Date: Mon, 3 May 2010 04:46:56 -0400 (EDT) From: "Tobias Schulte (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (JEXL-101) Vararg methods where the first argument is no vararg can not be called with only the fixed parameters given In-Reply-To: <12138596.31841272631975347.JavaMail.jira@thor> 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/JEXL-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863275#action_12863275 ] Tobias Schulte commented on JEXL-101: ------------------------------------- OK, you are right, {code:java}test.callMixed(1, null);{code} calls the method with args being null. I was sure, it would be an array of size 1. Learned something new today. > Vararg methods where the first argument is no vararg can not be called with only the fixed parameters given > ----------------------------------------------------------------------------------------------------------- > > Key: JEXL-101 > URL: https://issues.apache.org/jira/browse/JEXL-101 > Project: Commons JEXL > Issue Type: Bug > Affects Versions: 2.0.1 > Reporter: Tobias Schulte > Assignee: Henri Biestro > Fix For: 2.0.2 > > Attachments: jexl-varargs.patch > > > When you have a public String testVarArgsMixed(Integer fixed, Integer[] args) in a class Test, put a test instance in the context and evaluate the expression test.testVarArgsMixed(1), the MethodExecutor is not able to find the method. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.