RFR: 8294960: Convert java.base/java.lang.invoke package to use the Classfile API to generate lambdas and method handles [v18]
    ExE Boss 
    duke at openjdk.org
       
    Wed Jun 12 22:52:17 UTC 2024
    
    
  
On Thu, 6 Jun 2024 13:24:06 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 566:
> 
>> 564: 
>> 565:     static ClassDesc implClassDesc(Class<?> cls) {
>> 566:         return cls.isHidden() ? ReferenceClassDescImpl.ofValidatedBinaryName(cls.getName())
> 
> I recommend just returning null or a dummy value if the cls is hidden; in this case, implMethodClassDesc can safely be null, as implementation must go through condy.
Relevant issue:
- https://github.com/openjdk/jdk/pull/18810
[JDK‑8330467]: https://bugs.openjdk.org/browse/JDK-8330467
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17108#discussion_r1637204601
    
    
More information about the core-libs-dev
mailing list