On Thu, 6 Jun 2024 13:17:20 GMT, Chen Liang <li...@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

Reply via email to