On Wed, 28 Jan 2026 14:43:32 GMT, Paul Hübner <[email protected]> wrote:

> Does it print 'value' even if --enable-preview isn't specified on the command 
> line? If it does, is that the correct behavior?

It does print `value` both with and without `--enable-preview`. 
`AccessFlags::print_on` will always print `value`/`identity` even if Valhalla 
is not enabled. I am not sure how correct that is. The `classPrinter` is 
intended for debugging and a developer feature, so it might be best to have the 
print consistent. But at the same time, the extra printing has no meaning 
without Valhalla enabled.

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

PR Comment: https://git.openjdk.org/valhalla/pull/1989#issuecomment-3811837199

Reply via email to