Generation of synthesized parameters
Eric McCorkle
eric.mccorkle at oracle.com
Tue Jan 29 11:40:02 PST 2013
In order to facilitate writing tests for the MethodParameters feature,
I'd like to get a complete list of all the cases when javac can generate
synthesized parameters.
Here is a list I've put together from email discussions and comments in JBS:
1) outer "this" parameters
2) extra values passed to constructor for enum values
3) hidden values passed to constructors of inner classes for final
variables
4) JLS mandated public no-arg constructors added by the compiler to
classes with no declared constructor: synthesized
5) The two parameters pre-ended to enum constructors by javac
Does this capture everything, or does it miss something?
Ideally, I would like to put together a complete list of all cases that
should generate synthesized parameters. (If one already exists, then
that's great).
Thanks,
Eric
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eric_mccorkle.vcf
Type: text/x-vcard
Size: 303 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20130129/37a9f7ed/eric_mccorkle.vcf
More information about the compiler-dev
mailing list