Are canonical record constructor parameter names always available through reflection?
Eran Leshem
eran at leshem.life
Sat Dec 16 22:00:05 UTC 2023
Hi,
I know that in general, method parameter names are only available at runtime
if you specify the -parameters compiler option. From my testing, it seems
like that's not the case with canonical record constructors, but rather that
their parameter names are always available through reflection, regardless of
-parameters.
I couldn't find any documentation about this. Is it required by the spec, or
is it just a side effect of these parameters being derived from record
components?
Thanks
Eran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20231217/580c674f/attachment.htm>
More information about the amber-dev
mailing list