I don't know why this is failing
This commit is contained in:
@@ -66,6 +66,12 @@ public class ClassFile
|
||||
methods = new Methods(this);
|
||||
attributes = new Attributes(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return "ClassFile{" + "name=" + name + '}';
|
||||
}
|
||||
|
||||
public void write(DataOutputStream out) throws IOException
|
||||
{
|
||||
|
||||
@@ -173,7 +173,13 @@ public class InvokeVirtual extends Instruction implements InvokeInstruction
|
||||
assert myMethods.size() == otherMethods.size();
|
||||
|
||||
for (int i = 0; i < myMethods.size(); ++i)
|
||||
mapping.map(myMethods.get(i), otherMethods.get(i));
|
||||
{
|
||||
net.runelite.deob.Method m1 = myMethods.get(i), m2 = otherMethods.get(i);
|
||||
|
||||
assert m1.getMethods().getClassFile().getName().equals(m2.getMethods().getClassFile().getName());
|
||||
|
||||
mapping.map(m1, m2);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -63,8 +63,8 @@ public class MapStaticTest
|
||||
ClassGroup group1 = JarUtil.loadJar(new File("d:/rs/07/adamin1.jar"));
|
||||
ClassGroup group2 = JarUtil.loadJar(new File("d:/rs/07/adamin2.jar"));
|
||||
|
||||
Method m1 = group1.findClass("class40").findMethod("method851");
|
||||
Method m2 = group2.findClass("class40").findMethod("method803");
|
||||
Method m1 = group1.findClass("class55").findMethod("method1187");
|
||||
Method m2 = group2.findClass("class55").findMethod("method1140");
|
||||
|
||||
ParallelExecutorMapping mappings = MappingExecutorUtil.map(m1, m2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user