Crap.
My change to ClassUtil broke this when serializing ByteArrays and such from a sub ApplicationDomain. Jesus this stuff is annoying. I have no idea why it's not the same Class when you create a standard flash library class from within a sub AppDom. But let's go ahead and check the object by name, then. Hopefully this doesn't break something ELSE. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5232 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -173,7 +173,7 @@ public class ObjectMarshaller
|
|||||||
if (type == "number" || type == "string" || type == "boolean" ) {
|
if (type == "number" || type == "string" || type == "boolean" ) {
|
||||||
return null; // kosher!
|
return null; // kosher!
|
||||||
}
|
}
|
||||||
if (-1 != VALID_CLASSES.indexOf(ClassUtil.getClass(value))) {
|
if (-1 != VALID_CLASSES.indexOf(ClassUtil.getClassName(value))) {
|
||||||
return null; // kosher
|
return null; // kosher
|
||||||
}
|
}
|
||||||
if (!Util.isPlainObject(value)) {
|
if (!Util.isPlainObject(value)) {
|
||||||
@@ -205,6 +205,6 @@ public class ObjectMarshaller
|
|||||||
staticInit();
|
staticInit();
|
||||||
|
|
||||||
/** Non-simple classes that we allow, as long as they are not subclassed. */
|
/** Non-simple classes that we allow, as long as they are not subclassed. */
|
||||||
protected static const VALID_CLASSES :Array = [ ByteArray, Point, Rectangle ];
|
protected static const VALID_CLASSES :Array = [ "flash.utils.ByteArray", "flash.geom.Point", "flash.geom.Rectangle" ];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user