mirror of
https://github.com/revanced/smali.git
synced 2025-05-04 08:34:25 +02:00
Don't let later entries in the classpath override classes from earlier entries
This commit is contained in:
parent
1acfb0ef18
commit
0044afa4c3
@ -243,7 +243,9 @@ public class ClassPath {
|
|||||||
//TODO: need to check if the class already exists. (and if so, what to do about it?)
|
//TODO: need to check if the class already exists. (and if so, what to do about it?)
|
||||||
TempClassInfo tempClassInfo = new TempClassInfo(dexFilePath, classDefItem);
|
TempClassInfo tempClassInfo = new TempClassInfo(dexFilePath, classDefItem);
|
||||||
|
|
||||||
tempClasses.put(tempClassInfo.classType, tempClassInfo);
|
if (!tempClasses.containsKey(tempClassInfo.classType)) {
|
||||||
|
tempClasses.put(tempClassInfo.classType, tempClassInfo);
|
||||||
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
throw ExceptionWithContext.withContext(ex, String.format("Error while loading class %s",
|
throw ExceptionWithContext.withContext(ex, String.format("Error while loading class %s",
|
||||||
classDefItem.getClassType().getTypeDescriptor()));
|
classDefItem.getClassType().getTypeDescriptor()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user