[infinispan-dev] [jgroups-dev] Incompatible change in 3.1.0

Bela Ban bban at redhat.com
Tue Nov 29 08:14:00 EST 2011



On 11/29/11 1:58 PM, Galder Zamarreño wrote:
>
> On Nov 29, 2011, at 10:50 AM, Bela Ban wrote:
>
>>
>>
>> On 11/29/11 10:20 AM, Galder Zamarreño wrote:
>>> Hmmm, why do you need to break API here?
>>>
>>> Couldn't you maintain the current API and add?:
>>> void Message.setMsgFlag(short flag)
>>> void Message.clearMsgFlag(short flag)
>>> boolean Message.isMsgFlagSet(short flag)
>>
>>
>> The problem here is that if you call Message.setFlag(byte flag) with
>> Message.OOB, you'll have to change your code anyway, namely narrow the
>> short to a byte.
>
> Right, that's assuming that you change to a short for Message.OOB.
> You could leave it as it is and have Message2.OOB which is a short.


You mean a subclass of Message ? No, that change would be way too 
intrusive, plus it would require client code changes




-- 
Bela Ban
Lead JGroups (http://www.jgroups.org)
JBoss / Red Hat


More information about the infinispan-dev mailing list