From 9d3ff0b44d7352342c835eaa4e20b291d7f68de0 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Thu, 4 Sep 2008 01:29:43 +0000 Subject: [PATCH] If the server streams an array of enums, it will surely think they're final. So we'd better do the same here. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5353 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/ClassUtil.as | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/as/com/threerings/util/ClassUtil.as b/src/as/com/threerings/util/ClassUtil.as index eda02bed8..92da249bd 100644 --- a/src/as/com/threerings/util/ClassUtil.as +++ b/src/as/com/threerings/util/ClassUtil.as @@ -100,6 +100,11 @@ public class ClassUtil return true; } + // all enums are final, even if you forget to make your enum class final, you punk + if (isAssignableAs(Enum, type)) { + return true; + } + // TODO: there's currently no way to determine final from the class // I thought examining the prototype might do it, but no dice. // Fuckers!