commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wim Deblauwe <wim.debla...@gmail.com>
Subject [betwixt] Only use idref for == objects, not for equal objects
Date Mon, 17 Oct 2005 08:12:48 GMT
Hi,

Betwixt outputs idref attributes for objects that are equal. It would be
better if it only used idref for objects that are the same reference (==).
Because when you use Betwixt now to serialize 2 equal objects, they turn
into the same object after deserialization. So you have a different
situation.

This problem can easily be solved by replacing the use of HashMap in
AbstractBeanWriter with IdentityHashMap.

regards,

Wim

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message