From 94851b6cbbbb81b36073990a83d61eb3646cb9c4 Mon Sep 17 00:00:00 2001 From: Christopher Carpenter Date: Wed, 3 Feb 2016 16:30:06 -0500 Subject: [PATCH] Added a TODO regarding IDEA-137253. --- .../jetbrains/java/decompiler/struct/consts/ConstantPool.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/jetbrains/java/decompiler/struct/consts/ConstantPool.java b/src/org/jetbrains/java/decompiler/struct/consts/ConstantPool.java index 5d9b881..a204910 100644 --- a/src/org/jetbrains/java/decompiler/struct/consts/ConstantPool.java +++ b/src/org/jetbrains/java/decompiler/struct/consts/ConstantPool.java @@ -208,7 +208,8 @@ public class ConstantPool implements NewClassNameBuilder { String newClassName = buildNewClassname(ln.classname); String newElement = interceptor.getName(ln.classname + ' ' + ln.elementname + ' ' + ln.descriptor); String newDescriptor = buildNewDescriptor(ln.type == CodeConstants.CONSTANT_Fieldref, ln.descriptor); - + //TODO: Fix newElement being null caused by ln.classname being a leaf class instead of the class that declared the field/method. + //See the comments of IDEA-137253 for more information. if (newClassName != null || newElement != null || newDescriptor != null) { String className = newClassName == null ? ln.classname : newClassName; String elementName = newElement == null ? ln.elementname : newElement.split(" ")[1];