[code-reflection] RFR: Make @Reflect a use-site annotation [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Dec 4 19:26:22 UTC 2025


On Thu, 4 Dec 2025 18:41:00 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:

>> Maurizio Cimadamore has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Fix javadoc
>>  - Fix HAT examples
>
> src/jdk.incubator.code/share/classes/jdk/incubator/code/Reflect.java line 43:
> 
>> 41:  * <li>When a method is annotated with this annotation, the method becomes reflectable, and all the lambda expressions
>> 42:  * and method references enclosed in it also become reflectable.</li>
>> 43:  * <li>When a variable declaration (a field, or a local variable) is annotated with this annotation, all the methods, lambda expressions
> 
> What does it mean "all the methods" in the context of an initializer expression?

I was thinking inner classes, but we don't support those... it's a leftover...

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

PR Review Comment: https://git.openjdk.org/babylon/pull/726#discussion_r2590274330


More information about the babylon-dev mailing list