# HG changeset patch # User darcy # Date 1574879020 28800 # Node ID 498ce2452972fe294640dbe841f9e34beff4613b # Parent 9186be5c78baaf0db58a5702a1deae73409293e9 8234917: Explicitly discuss java.lang.Enum in Class.isEnum spec Reviewed-by: jjg diff -r 9186be5c78ba -r 498ce2452972 src/java.base/share/classes/java/lang/Class.java --- a/src/java.base/share/classes/java/lang/Class.java Wed Nov 27 11:52:57 2019 -0500 +++ b/src/java.base/share/classes/java/lang/Class.java Wed Nov 27 10:23:40 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 not the class of the declaring enum type. The * {@link Enum#getDeclaringClass} method of an enum constant can