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

Brian Burkhalter brian.burkhalter at oracle.com
Wed Jul 3 21:28:28 UTC 2019

Hi Joe,

> On Jul 3, 2019, at 2:24 PM, Joe Darcy <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.



More information about the core-libs-dev mailing list