Review request: update javac to properly output mandated parameters in MethodParameters attributes

Eric McCorkle eric.mccorkle at oracle.com
Thu Feb 7 16:11:39 PST 2013


On Feb 7, 2013, at 5:50 PM, Maurizio Cimadamore <maurizio.cimadamore at oracle.com> wrote:

>> I can't think of another way other than chasing down the cases called out in the spec and marking them appropriately. After all, the distinction between ACC_SYNTHETIC and ACC_MANDATED is brand new, so it has been normal for the compiler to mark all extra stuff (not in the spec) as SYNTHETIC.
> Also, SYNTHETIC parameters also have VarSymbols - only that symbol is not referred to from the method symbol. But you can access to those symbol from the method tree.
>> 
> 

We might want to look at refactoring some of this eventually, so that there's a clearer, cleaner interface for creating and enumerating these parameters.  But with M7 next week, now is definitely not the time.


More information about the compiler-dev mailing list