On 03/17/2009 11:24 PM, Ron Sigal wrote:
> Got another failure. I have a test that uses an enumeration and an
> ObjectResolver, and Serial seems to fail the test for two reasons.
>
> 1. The enumerations is defined
> [...]
> and SerialUnmarshaller isn't happy. It looks like
>
> if (obj instanceof Enum) {
> write(TC_ENUM);
> writeClassDescFor(objClass);
>
> in SerialMarshaller.doWriteObject() should be
>
> if (obj instanceof Enum) {
> write(TC_ENUM);
> writeClassDescFor(((Enum) obj).getDeclaringClass());