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

Bela Ban bban at redhat.com
Tue Nov 29 08:09:07 EST 2011


OK, I changed this. Infinispan master and jboss-as master don't object; 
obviously the only method used was Message.setFlag() and 
RequestOptions.setFlags()...

On 11/29/11 12:04 PM, Manik Surtani wrote:
>
> On 29 Nov 2011, at 10:43, Tristan Tarrant wrote:
>
>> On 11/29/2011 11:28 AM, Bela Ban wrote:
>>> Yes, I thought about this too, but then trashed the idea because enums
>>> take up too much memory. Since an enum is a class, and an enum instance
>>> is an instance (although a singleton / classloader instance), we have
>> Why, you would just use the Enum when setting and getting, but otherwise
>> just store your internal representation.
>
> Yes thats what I meant.  This way the internal representation can change from version to version if needed, and still shield users from API change.  Plus enums from an API standpoint is cleaner/nicer, and good enough a reason to do so.


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


More information about the infinispan-dev mailing list