RFR: 8271820: Implementation of JEP 416: Reimplement Core Reflection with Method Handle [v13]
Mandy Chung
mchung at openjdk.java.net
Thu Oct 14 00:57:50 UTC 2021
On Thu, 14 Oct 2021 00:10:50 GMT, Maurizio Cimadamore <mcimadamore at 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
More information about the core-libs-dev
mailing list