[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-core-libs-dev
Subject:    Re: JDK 14 RFR of JDK-8234917: "Explicitly discuss java.lang.Enum in Class.isEnum spec"
From:       Chris Hegarty <chris.hegarty () oracle ! com>
Date:       2019-11-28 9:07:55
Message-ID: E077EF57-2BA9-4242-9CC5-9689977A461D () oracle ! com
[Download RAW message or body]

Looks good Joe.

-Chris.

> On 27 Nov 2019, at 15:44, Joe Darcy <joe.darcy@oracle.com> wrote:
> 
> Hello,
> 
> Please review the small doc RFE to address
> 
>     JDK-8234917: "Explicitly discuss java.lang.Enum in Class.isEnum spec"
> 
> Patch below; thanks,
> 
> -Joe
> 
> --- a/src/java.base/share/classes/java/lang/Class.java    Wed Nov 27 06:36:41 2019 -0800
> +++ b/src/java.base/share/classes/java/lang/Class.java    Wed Nov 27 06:53:07 2019 -0800
> @@ -3503,7 +3503,9 @@
>       * Returns true if and only if this class was declared as an enum in the
>       * source code.
>       *
> -     * Note that if an enum constant is declared with a class body,
> +     * Note that {@link java.lang.Enum} is not itself an enum type.
> +     *
> +     * Also note that if an enum constant is declared with a class body,
>       * the class of that enum constant object is an anonymous class
>       * and <em>not</em> the class of the declaring enum type. The
>       * {@link Enum#getDeclaringClass} method of an enum constant can
> 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic