Hi,

I think enums in Java should be immutable. When you let the programmer change 
values in an enum instance, an unexpected behaviour can happen when using 
multiple threads as enum instances are static (singleton).

So, I was wondering why not make enums instances be defined as records instead 
of normal classes.

What do you think?

Regards,

Alberto.

Reply via email to