Devs-

Don't know if anyone has been following the comments on 1361, but I'd
like an opinion before I move anywhere on the issue.  The basic
scenario is marshalling/unmarshalling a heterogeneous collection using
references when primitive wrappers and/or strings (from now on I'll
refer to all of these as primitives) can be in the collection (side by
side with more complex objects).  Marshalling dies with an exception
because none of the built-in descriptors for primitives have
identities defined, and the built-in descriptors can't be overridden
because of code in Marshaller.getClassDescriptor.

I can think of a couple solutions, but I'm not sure I'm crazy about
any of them (so feel free to suggest better ideas)

   1. Update ClassDescriptors to give some useful identity value
   2. Make the Marshaller not use references if the object is a primitive
   3. Allow for the overriding of built-in ClassDescriptors with mapping file

Any thoughts/comments are appreciated.

Thanks,
Stephen

Reply via email to