Bleh! Distributed mutable enums? I wonder if the people asking for that know that the mutable state of their enums will not survive serialization? If you look under the covers (or the spec), you'll see that only the symbolic name of the enum gets committed to the serialization stream (none of the field values)
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:tc-dev- > [EMAIL PROTECTED] On Behalf Of Terracotta JIRA (on behalf of > Sreenivasan Iyer) > Sent: Friday, June 22, 2007 10:45 AM > To: [email protected] > Subject: [tc-dev] [JIRA] Commented: (CDV-305) Changes in enums aren't > recognized by DSO > > [ https://jira.terracotta.org/jira//browse/CDV- > 305?page=comments#action_21626 ] > > Sreenivasan Iyer commented on CDV-305: > -------------------------------------- > > We do have some folks requesting support for Mutable Enums... > > > Changes in enums aren't recognized by DSO > > ----------------------------------------- > > > > Key: CDV-305 > > URL: https://jira.terracotta.org/jira//browse/CDV-305 > > Project: Community Development > > Issue Type: Bug > > Reporter: Orion Letizi > > Assigned To: QA Team > > Priority: 0 Showstopper > > > > Many of the issues around enums have been resolved, but there is still > this caveat: > > f you define an enum that contains state: > > enum MutableEnum { > > A, B; > > > > private int fVal; > > > > public void setValue(int i) { > > fVal = i; > > } > > > > public int getValue() { > > return fVal; > > } > > } > > You can share the enum value but the state will not be shared. If you > make this a root and view it in the AdminConsole, you will not see fVal. > In fact, in the console we treat enums as simple literals: enumRoot=A. > > -- > This message is automatically generated by JIRA. > - > If you think it was sent incorrectly contact one of the administrators: > https://jira.terracotta.org/jira//secure/Administrators.jspa > - > For more information on JIRA, see: http://www.atlassian.com/software/jira > > > _______________________________________________ > tc-dev mailing list > [email protected] > http://lists.terracotta.org/mailman/listinfo/tc-dev _______________________________________________ tc-dev mailing list [email protected] http://lists.terracotta.org/mailman/listinfo/tc-dev
