On Wed, 21 Jun 2023 00:13:24 GMT, Chen Liang <li...@openjdk.org> wrote:
>> Correct misstatement that the Class object for a primitive type can only be >> be access via fields like java.lang.Integer.TYPE. > > src/java.base/share/classes/java/lang/Class.java line 818: > >> 816: * they represent, namely {@code boolean}, {@code byte}, >> 817: * {@code char}, {@code short}, {@code int}, >> 818: * {@code long}, {@code float}, and {@code double}. > > Should we add `{@code void}` to the list here, as this is one of the > primitive type names? @liach please have a look at this intensive exchange between David Holmes (@dholmes-ora) and me: https://github.com/openjdk/jdk/pull/6213#issuecomment-960420076 That exchange relates to other keywords that might appear in plain (i.e. prose) font. Speaking of which, I might still owe David a follow-up PR. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/14574#discussion_r1238697667