On Mon, 2 Mar 2026 12:33:58 GMT, David Beaumont <[email protected]> wrote:

>> make/jdk/src/classes/build/tools/valhalla/valuetypes/GenValueClasses.java 
>> line 85:
>> 
>>> 83: public final class GenValueClasses extends AbstractProcessor {
>>> 84:     // Matches preprocessor option flag in CompileJavaModules.gmk.
>>> 85:     private static final String OUTDIR_OPTION_KEY = 
>>> "valueclasses.outdir";
>> 
>> Let's make this package-private so we can use it in the annotation above.
>
> Ohh, that's how you do that. Thanks!

I wish that it was allowed to refer to private fields of the target class from 
top‑level class annotations.

(This is already possible for inner classes due to nestmateness)

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2180#discussion_r3085423220

Reply via email to