mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8234917: Explicitly discuss java.lang.Enum in Class.isEnum spec
Reviewed-by: jjg
This commit is contained in:
parent
0a5505f7e9
commit
deb0c481e7
1 changed files with 3 additions and 1 deletions
|
@ -3503,7 +3503,9 @@ public final class Class<T> implements java.io.Serializable,
|
|||
* 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue