Fwd: Re: RFR: JEP 359-Records: compiler code

Vicente Romero vicente.romero at oracle.com
Fri Nov 8 17:02:29 UTC 2019


Hi all,

Please review another iteration of the compiler implementation for 
records at [1]. New in this iteration:

- I added an @implSpec comment to method: 
javax.lang.model.util.Elements::recordComponentFor
- moved the list of forbidden record component names to class Names
- added the code proposed by Maurizio to the parser with a small tweak 
for records declared as members
- modified the error message to indicate that any non-canonical 
constructor should invoke another constructor to: "constructor is not 
canonical, so its first statement must invoke another constructor"
- added method: 
com.sun.tools.sjavac.comp.PubapiVisitor::visitRecordComponent
- added new visitor: javax.lang.model.util.AbstractTypeVisitor14
- moved annotation processing tests for records to common place for 
other annotation processing tests


Thanks,
Vicente

[1] http://cr.openjdk.java.net/~vromero/records.review/compiler/webrev.04


More information about the compiler-dev mailing list