This commit is contained in:
Jean-Marie Mineau 2025-03-27 14:12:22 +01:00
parent 7b107e352e
commit 01426a3d0f
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -98,15 +98,17 @@ fn insert_code_model_class_loaders(apk: &mut Apk, data: &RuntimeData) -> Result<
// and anyway, there is no reason to rename ref in it (its only parent // and anyway, there is no reason to rename ref in it (its only parent
// sould be the classbootloader, and we don't handle changing class loader // sould be the classbootloader, and we don't handle changing class loader
// on the fly) // on the fly)
if let Some(new_names) = new_names.remove(&k) if let Some(new_names) = new_names.remove(&k) {
&& k != main_cl_id if k != main_cl_id {
{
v.rename_refs(new_names).map(|v| (k, v)) v.rename_refs(new_names).map(|v| (k, v))
} else { } else {
Ok((k, v)) Ok((k, v))
} }
} else {
Ok((k, v))
}
}) })
.collect()?; .collect::<Result<_>>()?;
// TODO: get the ClassLoader::parent values... // TODO: get the ClassLoader::parent values...
// TODO: model the delegation behavior and rename ref to class accordingly // TODO: model the delegation behavior and rename ref to class accordingly