XStream

handle all Enums as immutable types

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.3
  • Component/s: Core
  • Labels:
    None

Description

from Jörg on user thread:

"immutability is normally something that is a very special case tied to special classes. It's just that Enums represent a complete hierarchy of class types that should be treated in this way. Therefore I am more inclined to add something like this to the mappers directly."

in general it woudl be nice to handle all enum types as immutable classes so that references are not used.

Activity

Hide
Joerg Schaible added a comment -

Implemented in head revision. You may give it a try.

Show
Joerg Schaible added a comment - Implemented in head revision. You may give it a try.
Hide
Joerg Schaible added a comment -

Closing issues before next release.

Show
Joerg Schaible added a comment - Closing issues before next release.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: