RFR: 8294960: Convert java.base/java.lang.invoke package to use the Classfile API to generate lambdas and method handles [v18]

Adam Sotona asotona at openjdk.org
Mon Jun 17 13:19:18 UTC 2024


On Thu, 6 Jun 2024 13:17:20 GMT, Chen Liang <liach at openjdk.org> wrote:

>> Adam Sotona has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - reverted static initialization of ConstantPoolBuilder and CP entries
>>  - fixed naming conventions
>
> src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java line 470:
> 
>> 468:         MethodVisitor mv = cw.visitMethod(ACC_PRIVATE + ACC_FINAL,
>> 469:                                           NAME_METHOD_WRITE_OBJECT, DESCR_METHOD_WRITE_OBJECT,
>> 470:                                           null, SER_HOSTILE_EXCEPTIONS);
> 
> The exceptions attribute is now lost on the migrated methods. Is that ok? It's private and only accessed by reflection so I think there's no real impact.

Good catch, they were lost in translation.
I think we should keep them.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/17108#discussion_r1642800017


More information about the core-libs-dev mailing list