RFR: JDK-8241798: Allow enums to have more constants

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Tue Mar 31 15:42:55 UTC 2020


On 31/03/2020 07:40, Liam Miller-Cushon wrote:
> I think that limits this strategy to enums that don't declare 
> constructors with non-mandated parameters. I'd still be happy to have 
> support for that many constants in 'simple' enums, but needing 
> different code generation strategies for different kinds of enum does 
> change the return-on-complexity a bit.

I agree - your first patch has a simplicity to it that is appealing.

If we go down more complex paths which require different generation 
strategies, I'm not sure whether the trade off is justified - as that 
has consequence on testing and all.

Maurizio



More information about the compiler-dev mailing list