mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
On Class replacement also patch the local variable signatures.
This commit is contained in:
parent
7692880b7e
commit
820a4ac6df
@ -173,6 +173,9 @@ public class ClassFile {
|
|||||||
ConstantNameAndType nameAndType = new ConstantNameAndType( ref.getName(), type );
|
ConstantNameAndType nameAndType = new ConstantNameAndType( ref.getName(), type );
|
||||||
constantPool.set( i, new ConstantFieldRef( thisClass, nameAndType ) );
|
constantPool.set( i, new ConstantFieldRef( thisClass, nameAndType ) );
|
||||||
}
|
}
|
||||||
|
} else if( obj instanceof String ) {
|
||||||
|
String str = ((String)obj).replace( origSignature, thisSignature );
|
||||||
|
constantPool.set( i, str );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user