groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Bayer <andrew.ba...@gmail.com>
Subject How does Groovy decide to coerce a GString to a String at method dispatch?
Date Mon, 21 Aug 2017 22:53:36 GMT
Hey all -

I'm working on an issue in Jenkins' Groovy sandboxing logic -
https://issues.jenkins-ci.org/browse/JENKINS-46327. The problem is that
'map."some${variable}"' seems to be acting as if the GStringImpl was the
key, rather than the String it should coerce to. I've got a feeling this is
due to a flaw in our sandbox's method dispatch code somewhere, so I'm
trying to figure out how Groovy is deciding to coerce normally. And I can't
tell where that would be. =) Anyone got any pointers?

A.

Mime
View raw message