I need enums support for a project on jdk 1.4 and looked at Spring enums. However I've found some issues:
1. serialization support - if an enum is serialized and deserialized a new instance is created. Retrieving the same instance would be prefered as different instances of the same enum inside the same classloader don't make much sense.
2. retrieving the declared enums - to discover the declared enums a different object (i.e. enumResolver) is required. Is it possible to encapsulate this functionality inside the enum itself ? (I know that in commons-lang each enum declaration can contain such methods but they have to be written manually by the developer).
Are these issues going to be addressed in the future or they were not a requirement?