From 0dfa3dc8a23af7f012eeba3498eadb40dbb29966 Mon Sep 17 00:00:00 2001 From: kimchy Date: Tue, 1 Feb 2011 14:16:27 +0200 Subject: [PATCH] Groovy client doesn't bind to any variables outside the closure, closes #654. --- .../groovy/common/xcontent/GXContentBuilder.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/lang/groovy/src/main/groovy/org/elasticsearch/groovy/common/xcontent/GXContentBuilder.groovy b/plugins/lang/groovy/src/main/groovy/org/elasticsearch/groovy/common/xcontent/GXContentBuilder.groovy index b9c194d8e81..5cbc49e2fd6 100644 --- a/plugins/lang/groovy/src/main/groovy/org/elasticsearch/groovy/common/xcontent/GXContentBuilder.groovy +++ b/plugins/lang/groovy/src/main/groovy/org/elasticsearch/groovy/common/xcontent/GXContentBuilder.groovy @@ -35,7 +35,7 @@ class GXContentBuilder { static NODE_ELEMENT = "element" - static int rootResolveStrategy = Closure.DELEGATE_FIRST; // the default + static int rootResolveStrategy = Closure.OWNER_FIRST; // the default in Closure def root