Return-Path: X-Original-To: apmail-groovy-users-archive@minotaur.apache.org Delivered-To: apmail-groovy-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7A4D18D05 for ; Thu, 23 Jul 2015 15:25:54 +0000 (UTC) Received: (qmail 82114 invoked by uid 500); 23 Jul 2015 15:25:40 -0000 Delivered-To: apmail-groovy-users-archive@groovy.apache.org Received: (qmail 82085 invoked by uid 500); 23 Jul 2015 15:25:40 -0000 Mailing-List: contact users-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.incubator.apache.org Delivered-To: mailing list users@groovy.incubator.apache.org Received: (qmail 82075 invoked by uid 99); 23 Jul 2015 15:25:40 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2015 15:25:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DF8D2C0B8F for ; Thu, 23 Jul 2015 15:25:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id vzQYdyFptAWL for ; Thu, 23 Jul 2015 15:25:32 +0000 (UTC) Received: from mail-qk0-f169.google.com (mail-qk0-f169.google.com [209.85.220.169]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 2C2E824DBC for ; Thu, 23 Jul 2015 15:25:32 +0000 (UTC) Received: by qkdl129 with SMTP id l129so175376766qkd.0 for ; Thu, 23 Jul 2015 08:24:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=LrIq4nJhWGukbSXCK2FvAJi+yckFIJoLLvUNpD9TlOQ=; b=MiZ13E5WYaGtepyThwRZ6HsPaaGqthlp72jyAeWLvIWSBVj0pZ/vb2ZPg7x2Hfzxry jeVkNb/Kohja7EZgGAqZwWOy0vil69dV7ghmtvS2Gu1nIpNRfzILZlktCfQZFNPHkMSf x99ocafdhYsDWzDYCEPV/2jSUvTp7/QiVAGV5LaTjxO3X/he7xKZpPJAJY3Elug0dXjO JhnUNpF/t0NM9QKc1PMJakri6l6zZEWEFDyob93CPcR7J8O9sW9jMQi5EVXcXtR/E5LS J6bux5qu4eiPAtg5FvcfrINEShiZQUBnox8Z7pMnoBILAW8onBLQfs9UKNvPOk9bL4nP ojdg== X-Received: by 10.140.93.43 with SMTP id c40mr12981532qge.54.1437665041174; Thu, 23 Jul 2015 08:24:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.19.243 with HTTP; Thu, 23 Jul 2015 08:23:41 -0700 (PDT) In-Reply-To: References: From: Keegan Witt Date: Thu, 23 Jul 2015 11:23:41 -0400 Message-ID: Subject: Re: deprecated varargs syntax? To: users@groovy.incubator.apache.org Content-Type: multipart/alternative; boundary=001a113abd6015e0bb051b8c7af6 --001a113abd6015e0bb051b8c7af6 Content-Type: text/plain; charset=UTF-8 Could you give more information on the types of the parameters to the method? I just used a String for t and d and it worked in groovyConsole for both 2.1.6 and 2.1.8. Have you been able to reproduce this in a simple example? Also, what are you using to compile Groovy? -Keegan On Tue, Jul 7, 2015 at 3:47 PM, Ralph Johnson wrote: > I recently changed the compiler from 2.1.6 to 2.1.8 and a couple of things > changed. I just found this problem and wonder if it is one more. > > We have scripts with lines of the form > > openModalWindow 'EditScreen', fromType: t, withData: d > > which calls the following method where options is the map {fromType: t, > withData: d}. > > def openModalWindow(Map options=[:], Object screenName) { > > ... > > } > > The scripts just stopped working, and the error is that there is no method > to match openModelWIndow(String). > > The documentation only describes the varargs form where the last parameter > is a variable-length array, not the one where the first one is a map. > > Did this syntax get deprecated? > --001a113abd6015e0bb051b8c7af6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Could you give more information on the types of the p= arameters to the method?=C2=A0 I just used a String for t and d and it work= ed in groovyConsole for both 2.1.6 and 2.1.8.=C2=A0 Have you been able to r= eproduce this in a simple example?=C2=A0 Also, what are you using to compil= e Groovy?

-Keegan

On Tue, Jul 7, 2015 at 3:47 PM, Ralph Johnson <jo= hnson@cs.uiuc.edu> wrote:
<= div dir=3D"ltr">I recently changed the compiler from 2.1.6 to 2.1.8 and a c= ouple of things changed.=C2=A0 I just found this problem and wonder if it i= s one more.

We have scripts with lines of the form
=

openModalWindow 'EditScreen', fromType: t, withData: d

whi= ch calls the following method where options is the map {fromType: t, withDa= ta: d}.=C2=A0

def openModalWindow(Map options=3D[:], Object= screenName) {

=C2=A0 =C2=A0 ...

}

The scripts just stopped working, and the error is= that there is no method to match openModelWIndow(String). =C2=A0=C2=A0

=

The documentation only describes the varargs form where the last paramet= er is a variable-length array, not the one where the first one is a map.

Did this syntax get deprecated? =C2=A0


--001a113abd6015e0bb051b8c7af6--