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:
@@ -100,6 +100,11 @@ public class ClassUtil
|
|||||||
return true;
|
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
|
// TODO: there's currently no way to determine final from the class
|
||||||
// I thought examining the prototype might do it, but no dice.
|
// I thought examining the prototype might do it, but no dice.
|
||||||
// Fuckers!
|
// Fuckers!
|
||||||
|
|||||||
Reference in New Issue
Block a user