On Class replacement also patch the local variable signatures.

This commit is contained in:
Volker Berlin 2020-04-26 14:06:31 +02:00
parent 7692880b7e
commit 820a4ac6df

View File

@ -173,6 +173,9 @@ public class ClassFile {
ConstantNameAndType nameAndType = new ConstantNameAndType( ref.getName(), type );
constantPool.set( i, new ConstantFieldRef( thisClass, nameAndType ) );
}
} else if( obj instanceof String ) {
String str = ((String)obj).replace( origSignature, thisSignature );
constantPool.set( i, str );
}
}
}