Somewhat off-topic, but I think we should think about a similar implementation approach
for Option. I think we're going to start replicating those some day, and we're
also likely to add new flags over time. If I'm thinking correctly, use of an EnumSet
*may* help maintain serialization-compatibility between releases as long as we:
1) Don't remove enum constants from the enum we use for the flags.
2) Only add new enum constants at the end of the list; i.e. don't change order.
3) Don't replicate a new constant if we're interoperating with a previous release
that doesn't understand it.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995443#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...