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 14CB1189D3 for ; Wed, 3 Feb 2016 15:24:41 +0000 (UTC) Received: (qmail 99306 invoked by uid 500); 3 Feb 2016 15:24:37 -0000 Delivered-To: apmail-groovy-users-archive@groovy.apache.org Received: (qmail 99280 invoked by uid 500); 3 Feb 2016 15:24:37 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 99270 invoked by uid 99); 3 Feb 2016 15:24:37 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2016 15:24:37 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 5B85D1804DD for ; Wed, 3 Feb 2016 15:24:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.335 X-Spam-Level: * X-Spam-Status: No, score=1.335 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.545, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id jZA2TfXBjHgS for ; Wed, 3 Feb 2016 15:24:28 +0000 (UTC) Received: from nm18-vm0.bullet.mail.bf1.yahoo.com (nm18-vm0.bullet.mail.bf1.yahoo.com [98.139.213.138]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 226F543F5A for ; Wed, 3 Feb 2016 15:24:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1454513062; bh=gjc0fMcSAvQo1f2j9wVjaBRGjah7PfQ/WfX/QeERgJQ=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=YvHMjniGADUc1G3I/ztg48VfjxpGQwL+raxnriudVHQ2krvQcN7hnRDKT5NJpdb71n2BFP9hzNbqpN/UUQeyNN6m6AQdBVt4h0aQrQuE4xP9GWjkuqzYv6DlCCR+J7zeQ02mxEJwMq9xEM3CR1JhrBtqZTFLv0zmbz3gSuZW8eO6vScRdJaEIKisoQSq3R3sQ0DOdPkiGh4b7JzlqMYtPv4CkZuX6How2BJYvORUMWvtfQvUQzYUnWns3yXD/O9j1YqUbQPZwOLM+b0PB0qIy114/pRK3ztJ79cUcQhqzS+7VXmbCeDXPydrNHaZSeziNU78XEWj8B5vdixoR2aUnQ== Received: from [98.139.215.143] by nm18.bullet.mail.bf1.yahoo.com with NNFMP; 03 Feb 2016 15:24:22 -0000 Received: from [98.139.212.210] by tm14.bullet.mail.bf1.yahoo.com with NNFMP; 03 Feb 2016 15:24:22 -0000 Received: from [127.0.0.1] by omp1019.mail.bf1.yahoo.com with NNFMP; 03 Feb 2016 15:24:22 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 668933.92504.bm@omp1019.mail.bf1.yahoo.com X-YMail-OSG: KnDrzdcVM1kPkSd9XXVHp_qyugu3zPNMxKUQ.5Vs8pUo5Qa3_GvwNpa3XOXWBm5 tE5f5fcqMXjxhLyr7d1iVVaHgxobbeKEqg9veYRY.eWEWH.OE6Co2xpVoEQJKn1hpzp4zra_yXUN NritsZyotW1_01ZXsSXfTmygVF87SSq_HPVgqqXeHW9MrtzJCDGnMiiyGxKyrrwFEesUjr8gEGyB Ce9gNpKOhpmmCrG_tolNuetN.nSCL9X6WCANHUipnY4Izj9QmKBq0z_pOzc1t7kuQWM5YIx4YWt7 kup2gyDlcvPiiWlmI7OpNHypmvl.vXK2oYIzohZXl9xSy9q4n3PNh2W2AUu6WoyLAoljHxXHDpSk u7RtsbrRQ3pY4Z7mt0fypbeV1_iuqUordEZFemXBTOecXAzs46ZIgmr9AsFYbC1iUonrjGpMRN5x Ul5vucZ1TOI.H52DzuiGoBAzCqy7n7PgPwcJWYCtvJ5o5BZdO4k1j4aEErgF_8N2sYh6_d4VtFDw RbZVKASQPWvJ3KbIUNYTROgxLuprRTREgx4kGCjC6EZo6R65SXAi.ZQ4n_hK6wIQcKSuS5BrOZA-- Received: by 76.13.26.198; Wed, 03 Feb 2016 15:24:22 +0000 Date: Wed, 3 Feb 2016 15:24:21 +0000 (UTC) From: Anton Sarov Reply-To: Anton Sarov To: "users@groovy.apache.org" Message-ID: <1260678567.1138770.1454513061885.JavaMail.yahoo@mail.yahoo.com> Subject: GroovyShell Binding with TypeChecked MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1138769_1486231838.1454513061882" References: <1260678567.1138770.1454513061885.JavaMail.yahoo.ref@mail.yahoo.com> ------=_Part_1138769_1486231838.1454513061882 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello, I have the following case where I want to make use of the type checking feature: http://groovyconsole.appspot.com/script/5121843795066880 Unfortunately I get an error like: "The variable [util] is undeclared". Why is this happening? I defined a variable in the provided binding but apparently this is somehow not relevant to the Groovy Shell... Best regardsAnton startup failed: Script1.groovy: 7: [Static type checking] - The variable [util] is undeclared. @ line 7, column 17. def a = util.test(); ^ 1 errorstartup failed: Script1.groovy: 7: [Static type checking] - The variable [util] is undeclared. @ line 7, column 17. def a = util.test(); ^ 1 errorstartup failed: Script1.groovy: 7: [Static type checking] - The variable [util] is undeclared. @ line 7, column 17. def a = util.test(); ^ 1 errorstartup failed: Script1.groovy: 7: [Static type checking] - The variable [util] is undeclared. @ line 7, column 17. def a = util.test(); ^ 1 errorstartup failed: Script1.groovy: 7: [Static type checking] - The variable [util] is undeclared. @ line 7, column 17. def a = util.test(); ^ 1 error ------=_Part_1138769_1486231838.1454513061882 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I hav= e the following case where I want to make use of the type checking feature:=

http://groovyconsole.appspot.com/script/5121843795066880<= div id=3D"yui_3_16_0_1_1454509943788_21314">

Unfortunately I g= et an error like: "The variable [util] is undeclared".

Why is this happening? I defined a variab= le in the provided binding but apparently this is somehow not relevant to t= he Groovy Shell...

Be= st regards
An= ton
startup failed:
Script1.groovy: 7: [Static type checking] - The variable [util] is undeclar=
ed.
 @ line 7, column 17.
           def a =3D util.test();
                   ^

1 error
startup failed:
Script1.groovy: 7: [Static type checking] - The variable [util] is undeclar=
ed.
 @ line 7, column 17.
           def a =3D util.test();
                   ^

1 error
startup failed:
Script1.groovy: 7: [Static type checking] - The variable [util] is undeclar=
ed.
 @ line 7, column 17.
           def a =3D util.test();
                   ^

1 errorstartup failed:
Script1.groovy: 7: [Static type checking] - The variable [util] is undeclar=
ed.
 @ line 7, column 17.
           def a =3D util.test();
                   ^

1 error
s=
tartup failed:
Script1.groovy: 7: [Static type checking] - The variable [util] is undeclar=
ed.
 @ line 7, column 17.
           def a =3D util.test();
                   ^

1 error
------=_Part_1138769_1486231838.1454513061882--