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 F1B5A1812B for ; Sat, 2 May 2015 21:15:11 +0000 (UTC) Received: (qmail 93520 invoked by uid 500); 2 May 2015 21:15:06 -0000 Delivered-To: apmail-groovy-users-archive@groovy.apache.org Received: (qmail 93486 invoked by uid 500); 2 May 2015 21:15:06 -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 93476 invoked by uid 99); 2 May 2015 21:15:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 May 2015 21:15:06 +0000 X-ASF-Spam-Status: No, hits=3.2 required=5.0 tests=HTML_MESSAGE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of charles.monteiro@gmail.com does not designate 54.164.171.186 as permitted sender) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 May 2015 21:14:59 +0000 Received: from mail-ig0-f175.google.com (mail-ig0-f175.google.com [209.85.213.175]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id F2B1D42ACD for ; Sat, 2 May 2015 21:14:38 +0000 (UTC) Received: by igblo3 with SMTP id lo3so60611900igb.1 for ; Sat, 02 May 2015 14:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:subject:message-id:date:to:mime-version; bh=oWYCq4NKCLuDiUpFovPwQyGBPCT92hneQkByuTFPM3A=; b=s/54XPpcCDUuAtFRhz3S48idIf0UBiajHrZNEY6oupMsAa8reEHxd589/mhfZDelPV PwfDYQiJ7ICyeYfFjniOwMC3n0Vqxm7kg3vlmspc/ilcxqIG/Ck4xeHDlhkx6Dci9/P7 rdyMNCDdHA1ILiAEzGcXI3ObH8pRUNee5nz8nK9XJPtsnKdr7bd0ZWLIFw1faMNjCRq3 ND56WOOncpc84lKJ1cIwS21FBYWeNaqsQFR6TOCTdpZTrW1uaBAMxZWJxLEeDRZ+DNxg AxyZuOC4I6dIqnuqxatyjZP4TVJ+l0U4P5KU0tVhpgnjTPOVxfq02FLf3AkGsH2XB2zr R9Yw== X-Received: by 10.50.43.194 with SMTP id y2mr11435471igl.35.1430499687982; Fri, 01 May 2015 10:01:27 -0700 (PDT) Received: from [192.168.20.137] (74-92-66-5-Philadelphia.hfc.comcastbusiness.net. [74.92.66.5]) by mx.google.com with ESMTPSA id fl10sm3534363igb.1.2015.05.01.10.01.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 May 2015 10:01:27 -0700 (PDT) From: Charles Monteiro Content-Type: multipart/alternative; boundary="Apple-Mail=_65EB0FD7-CB2A-406A-911E-F3564F3CB7C1" Subject: groovyc can't find a static Message-Id: <90B77280-02AE-4C54-A27D-62C355E1EE57@gmail.com> Date: Fri, 1 May 2015 13:01:26 -0400 To: Groovy Apache List Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) X-Mailer: Apple Mail (2.2098) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_65EB0FD7-CB2A-406A-911E-F3564F3CB7C1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi I=E2=80=99m using a third party Java library for which I have no source = i.e. I=E2=80=99m stuck with it. It seems that the problem is that the = creators of the library decided to use lowercase in the naming of some = of their classes e.g. =E2=80=9CiSessionMngr=E2=80=9D, unfortunate , but = Java forgives it and apparently Groovy does not.=20 Here=E2=80=99s the compilation output in question: Error:(124, 20) Groovyc: Apparent variable 'iSessionMngr' was found in a = static scope but doesn't refer to a local variable, static field or = class. Possible causes: You attempted to reference a variable in the binding or an instance = variable from a static context. You misspelled a classname or statically imported field. Please check = the spelling. You attempted to use a method 'iSessionMngr' but left out brackets in a = place not allowed by the grammar. the code has access to the classes contained within the jar, its really = references to what are supposed to be statics by lowercased names I am still relatively new to Groovy . I=E2=80=99m hoping for a work = around. I have access to the calling code so I thought about using = =E2=80=9Cimport aliases=E2=80=9D but thought I post this issue and get = some feedback from more experienced Groovy pros. thanks Charles --Apple-Mail=_65EB0FD7-CB2A-406A-911E-F3564F3CB7C1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi

I=E2=80=99= m using a third party Java library for which I have no source i.e. I=E2=80= =99m stuck with it. It seems that the problem is that the creators of = the library decided to use lowercase in the naming of some of their = classes e.g. =E2=80=9CiSessionMngr=E2=80=9D, unfortunate , but Java = forgives it and apparently Groovy does not. 
Here=E2=80=99s the compilation output = in question:

Error:(124, 20) Groovyc: Apparent variable = 'iSessionMngr' was found in a static scope but doesn't refer to a local = variable, static field or class. Possible causes:
You= attempted to reference a variable in the binding or an instance = variable from a static context.
You misspelled a = classname or statically imported field. Please check the = spelling.
You attempted to use a method = 'iSessionMngr' but left out brackets in a place not allowed by the = grammar.

the code has access to the classes contained within the jar, = its really references to what are supposed to be statics by lowercased = names

I am = still relatively new to Groovy . I=E2=80=99m hoping for a work around. I = have access to the calling code so I thought about using =E2=80=9Cimport = aliases=E2=80=9D but thought I post this issue and get some feedback = from more experienced Groovy pros.

thanks

Charles






= --Apple-Mail=_65EB0FD7-CB2A-406A-911E-F3564F3CB7C1--