On Fri, 10 Jul 2026 18:18:56 GMT, Joe Darcy <[email protected]> wrote:

>> Yes. I don't understand how a compile-time macro can work - we have one 
>> runtime that must support both preview-on and preview-off runs.
>
> In the space of generate-different-source-code-from-a-template solutions, it 
> would be possible to have code conditionally emitted for one case but not the 
> other. The solution used for JEP 401 currently just uncomments the `value` 
> modifier.

We tried to use annotation processors and discovered that it just introduced 
unnecessary hassles and complexities beyond what is required for JEP 401. I 
have described the JEP 401 process here; we can tweak this document if we do 
tweak this pipeline in the future.

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/2633#discussion_r3561176452

Reply via email to