Fixed renaming class elements when using the decompilers -ren=1 option. Fixes issue IDEA-137253

This commit is contained in:
Christopher Carpenter
2016-01-21 01:06:45 -05:00
parent 811494ccb2
commit bfddced4e2

View File

@@ -150,6 +150,11 @@ public class ConstantPool implements NewClassNameBuilder {
String descriptor = ((PrimitiveConstant)getConstant(descriptorIndex)).getString();
if (interceptor != null) {
String oldClassName = interceptor.getOldName(className);
if (oldClassName != null) {
className = oldClassName;
}
String newElement = interceptor.getName(className + " " + elementName + " " + descriptor);
if (newElement != null) {
elementName = newElement.split(" ")[1];