Commit c6386b4b authored by Eric Bruneton's avatar Eric Bruneton

Restore bug fix, make previously added test pass.

parent 53e4c3bd
Pipeline #803 passed with stage
in 5 minutes and 56 seconds
......@@ -67,8 +67,13 @@ public class SignatureRemapper extends SignatureVisitor {
String outerClassName = classNames.pop();
String className = outerClassName + '$' + name;
classNames.push(className);
String remappedOuter = remapper.mapType(outerClassName) + '$';
String remappedName = remapper.mapType(className);
v.visitInnerClassType(remappedName.substring(remappedName.lastIndexOf('$') + 1));
int index =
remappedName.startsWith(remappedOuter)
? remappedOuter.length()
: remappedName.lastIndexOf('$') + 1;
v.visitInnerClassType(remappedName.substring(index));
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment