[code-reflection] RFR: Implementation of -XDreflectAll switch [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Jan 9 09:56:57 UTC 2026


On Thu, 8 Jan 2026 16:25:43 GMT, Adam Sotona <asotona at openjdk.org> wrote:

>> This is a proposal for a `reflectAll` javac switch that provides code reflection models for all eligible methods and lambdas when enabled.
>
> Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
> 
>   catching and logging runtime exceptions when reflectAll enabled

src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties line 4335:

> 4333:     unsupported reflectable method reference in inner class {0}
> 4334: 
> 4335: # 0: symbol, 2: string

This seems wrong -- you go from 0 to 2. Odd that the build generator script doesn't detect that...

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

PR Review Comment: https://git.openjdk.org/babylon/pull/822#discussion_r2675546777


More information about the babylon-dev mailing list