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
This commit is contained in:
Ray Greenwell
2008-09-04 01:29:43 +00:00
parent ec2b50c153
commit 9d3ff0b44d
+5
View File
@@ -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!