Turns out they did fix the describeType bugs, but also changed the format
of the output. Update code to recognize the new format and stop working around the old bugs. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4108 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -67,21 +67,18 @@ public class ClassUtil
|
||||
var typeInfo :XMLList = describeType(srcClass).child("factory");
|
||||
|
||||
// See which classes we extend.
|
||||
var exts :XMLList = typeInfo.child("extends").attribute("type");
|
||||
var exts :XMLList = typeInfo.child("extendsClass").attribute("type");
|
||||
for each (var type :String in exts) {
|
||||
//if (asClass == getClassByName(type)) {
|
||||
// TEMP: recursing sometimes gets around a describeType bug
|
||||
if (isAssignableAs(asClass, getClassByName(type))) {
|
||||
if (asClass == getClassByName(type)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// See which interfaces we implement.
|
||||
var imps :XMLList = typeInfo.child("implements").attribute("type");
|
||||
var imps :XMLList = typeInfo.child("implementsInterface")
|
||||
.attribute("type");
|
||||
for each (var type :String in imps) {
|
||||
//if (asClass == getClassByName(type)) {
|
||||
// TEMP: recursing sometimes gets around a describeType bug
|
||||
if (isAssignableAs(asClass, getClassByName(type))) {
|
||||
if (asClass == getClassByName(type)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user