Uploaded image for project: 'JBoss Marshalling'
  1. JBoss Marshalling
  2. JBMAR-46

Serial marshaller is writing the wrong class for Enums

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.2.0.CR1
    • None
    • Serial
    • None
    • Low

      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());

              dlloyd@redhat.com David Lloyd
              dlloyd@redhat.com David Lloyd
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: