From 6dadce47613a3c69d928940bcc1b2043e0a0184a Mon Sep 17 00:00:00 2001 From: Robin Neatherway Date: Tue, 13 Mar 2018 20:16:48 +0000 Subject: [PATCH] Painless: Correct ClassToName string conversion (#28997) A typo of 'dimensions' rather than 'dimension' caused an infinite loop. --- .../src/main/java/org/elasticsearch/painless/Definition.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lang-painless/src/main/java/org/elasticsearch/painless/Definition.java b/modules/lang-painless/src/main/java/org/elasticsearch/painless/Definition.java index 6e37e5be0bb..95032acabef 100644 --- a/modules/lang-painless/src/main/java/org/elasticsearch/painless/Definition.java +++ b/modules/lang-painless/src/main/java/org/elasticsearch/painless/Definition.java @@ -565,7 +565,7 @@ public final class Definition { if (component == def.class) { StringBuilder builder = new StringBuilder(def.class.getSimpleName()); - for (int dimension = 0; dimension < dimensions; dimensions++) { + for (int dimension = 0; dimension < dimensions; dimension++) { builder.append("[]"); }