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