JDK 14 RFR of JDK-8227202: clarify Class.isEnum() doc

Joe Darcy joe.darcy at oracle.com
Wed Jul 3 22:46:12 UTC 2019


Hi Brian,

Thanks for catching that; I'll correct before pushing.

Cheers,

-Joe

On 7/3/2019 2:28 PM, Brian Burkhalter wrote:
> Hi Joe,
>
>> On Jul 3, 2019, at 2:24 PM, Joe Darcy <joe.darcy at oracle.com 
>> <mailto:joe.darcy at oracle.com>> wrote:
>>
>> +     * Note that if an enum constant is declared with a class body,
>> +     * the class of that enum constant is an anonymous class and
>> +     * <em>not</em> the class of the declaring enum type. The {@link
>> +     * Enum.getDeclaringClass} method can be used to get class of the
>
> I think you intended “get *the* class” in the preceding line.
>
>> +     * enum type declaring an enum constant.
>
> Thanks,
>
> Brian


More information about the core-libs-dev mailing list