]
Bela Ban resolved JGRP-2529.
----------------------------
Resolution: Done
BytesMessage/NioMessage: change semantics of get/setPayload()
-------------------------------------------------------------
Key: JGRP-2529
URL:
https://issues.redhat.com/browse/JGRP-2529
Project: JGroups
Issue Type: Enhancement
Reporter: Bela Ban
Assignee: Bela Ban
Priority: Major
Fix For: 5.1.5
Currently, setPayload() invoked on BytesMessage or NioMessage serializes the object into
a byte array (byte buffer). However, the equivalent getPayload() returns the byte
array/buffer, *not* the object.
The semantics should be:
* in: byte array, out: byte array
* in: object, out: object
This can be implemented by adding a SERIALIZED flag: when an object is serialized into a
byte array, the flag is set. When set, the byte array isde-serialized into an object on
getPayload(), else the byte array is returned.