update method table for all classes in updateClassTables

Previously we only updated this table for non-interfaces, but
interfaces may have methods which need updating too.
This commit is contained in:
Joel Dice 2013-03-16 10:54:35 -06:00
parent 3497354bbf
commit a648787e11

View File

@ -2353,12 +2353,12 @@ updateClassTables(Thread* t, object newClass, object oldClass)
}
}
}
} else {
object methodTable = classMethodTable(t, newClass);
if (methodTable) {
for (unsigned i = 0; i < arrayLength(t, methodTable); ++i) {
set(t, arrayBody(t, methodTable, i), MethodClass, newClass);
}
}
object methodTable = classMethodTable(t, newClass);
if (methodTable) {
for (unsigned i = 0; i < arrayLength(t, methodTable); ++i) {
set(t, arrayBody(t, methodTable, i), MethodClass, newClass);
}
}
}