RFR 8175013: Add @Generated Annotation

Lance Andersen lance.andersen at oracle.com
Fri Mar 17 11:36:47 UTC 2017


I have update the webrev to remove MODULE as a Target for now as javax.annotations.processing uses the JDK 8 compiler during the build process.


http://cr.openjdk.java.net/~lancea/8175013/webrev.01 <http://cr.openjdk.java.net/~lancea/8175013/webrev.01>


Given where we are in the JDK 9 timeline, I prefer to not to change the Retention value.  We can have a discussion for JDK 10 regarding the merits of changing the value.  Right now the intent is to have a replacement for the JSR 250 flavor of this annotation to provide for an easier transition.  

Best
Lance
> On Mar 16, 2017, at 4:01 PM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> 
> On 16/03/2017 15:44, Ron Shapiro wrote:
>> Are there any plans to make the new @Generated annotation have CLASS retention? We have a number of compile-time tools that would like to know when files are generated. No need at runtime, but it would be good to have this information stick around.
>> 
> JSR-250 has had @Generated fro 10+ years and it would be useful to see if they have had any similar feedback.
> 
> -Alan

 <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20170317/6b733398/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oracle_sig_logo.gif
Type: image/gif
Size: 658 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20170317/6b733398/oracle_sig_logo-0001.gif>


More information about the compiler-dev mailing list