Hello,
I tried it and it looks like an issue about first letter’s case.
For example,
*********
def Foo(a){
print a
}
Foo “berbat"
*********
gives compilation error: unexpected token berbat
But it does not give a compilation error when i change it like that.
*********
def fOo(a){
print a
}
fOo “berbat"
*********
/baybatu
<file://consolescript:5/>
<file://consolescript:5/>
> On Feb 28, 2016, at 00:08, [email protected] wrote:
>
> [First off I apologize for possibly reposting this question. My original
> posting never went out to the maillist due to unknown reasons. This is my
> second attempt. Sorry if you already read this before.]
>
> I am a developing a Groovy DSL to create Dockerfiles
>
> The format of a Dockerfile looks like:
>
> INSTRUCTION arguments
>
> Instructions are case-insensitive but convention is for them to be UPPERCASE.
>
> However Groovy doesn't seem to support optional parentheses if the method
> name is all uppercase:
>
> def FOOBAR(String msg) {
> println msg
> }
> FOOBAR "hello"
>
> groovyc: unexpected token: hello @ line 2, column 8.
> FOOBAR "hello"
> ^
>
> Do you know of any way to get this to work or is this a known limitation of
> Groovy?
>
> I tried with Groovy version 2.4.5
>
> If anyone has any insight, it would be very helpful.
>
> /matthias
>
> --
> Matthias Grüter
> www.grueter.name <http://www.grueter.name/> // [email protected]
> <mailto:[email protected]>