You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@groovy.apache.org by Ralph Johnson <jo...@cs.uiuc.edu> on 2015/10/07 17:26:29 UTC
bindings to GroovyShell overriding class names
I am using GroovyShell and passing in a binding with lots of names in it.
One of those names is "Currency", but the script thinks the name refers to
the class Currency, not the variable. I was surprised that GroovyShell
didn't use the variable in the binding before a class name. Does anybody
know what I could do to make the variables in the binding override class
names?
-Ralph Johnson
Re: bindings to GroovyShell overriding class names
Posted by Jochen Theodorou <bl...@gmx.org>.
Am 07.10.2015 um 17:26 schrieb Ralph Johnson:
> I am using GroovyShell and passing in a binding with lots of names in
> it. One of those names is "Currency", but the script thinks the name
> refers to the class Currency, not the variable. I was surprised that
> GroovyShell didn't use the variable in the binding before a class name.
> Does anybody know what I could do to make the variables in the binding
> override class names?
binding.Currency is the only thing I can think of right now
bye blackdrag
--
Jochen "blackdrag" Theodorou
blog: http://blackdragsview.blogspot.com/