On Thu, 14 Oct 2021 00:10:50 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> wrote:
>> Mandy Chung has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Minor cleanup. Improve javadoc in CallerSensitiveAdapter > > src/java.base/share/classes/jdk/internal/reflect/MethodHandleAccessorFactory.java > line 151: > >> 149: var setter = isReadOnly ? null : JLIA.unreflectField(field, >> true); >> 150: Class<?> type = field.getType(); >> 151: if (type == Boolean.TYPE) { > > dumb question: any reason why `boolean.class` (which is compiled to a LDC) is > not used? I only see `boolean.class` compiled to `getstatic Boolean.TYPE`. Is there a javac flag to compile it to a LDC? ------------- PR: https://git.openjdk.java.net/jdk/pull/5027