Are there any downsides if we add Enum.name() to the list of constant expressions in the JLS?

Archie Cobbs archie.cobbs at gmail.com
Thu Oct 17 01:33:41 UTC 2024


On Wed, Oct 16, 2024 at 8:33 PM Archie Cobbs <archie.cobbs at gmail.com> wrote:

> On Wed, Oct 16, 2024 at 7:09 PM David Alayachew <davidalayachew at gmail.com>
> wrote:
>
>> Now, to my question -- are there any downsides or obstacles to adding
>> Enum.name() to this list of constant expressions?
>>
>
> Just to clarify, this could only work for enum constant literals, e.g.,
> FOOBAR.name() which would obviously have value "foobar".
>

Oops, I meant "FOOBAR" ...

-- 
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20241016/80c1620a/attachment.htm>


More information about the amber-dev mailing list