Review request: update javac to properly output mandated parameters in MethodParameters attributes
Alex Buckley
alex.buckley at oracle.com
Thu Feb 7 14:08:25 PST 2013
On 2/7/2013 12:51 PM, maurizio cimadamore wrote:
> Another case - private constructors:
>
> class Outer {
> class Inner {
> private Inner() { }
> }
>
> Inner i = new Inner();
> }
>
> javac will append to the Inner's constructor an extra argument called
> 'accessTag' - which is essentially a type token.
This parameter certainly seems to be neither explicitly declared nor
implicitly declared, so javac should mark it ACC_SYNTHETIC. A
javac-specific document should enumerate the growing list of constructs
which are marked like that.
Alex
More information about the compiler-dev
mailing list