RFR: 8000404 java.lang.annotation.Native
Alan.Bateman at oracle.com
Wed Nov 14 08:31:42 UTC 2012
On 14/11/2012 05:26, Jonathan Gibbons wrote:
> See http://cr.openjdk.java.net/~jjg/8000404/webrev/
> A while back, we added a new annotation
> javax.tools.GenerateNativeHeader, to mark classes that contained
> constants of interest to native code, such that tools, like javac with
> the -h option, could generate know to generate native header files.
> Based on our experience in using the new annotation, we have decided
> to change to using a different annotation, with the same purpose:
> java.lang.annotation.Native, to be used to annotate the constants
> This review is for step 1 of a 3 step process to replace
> javax.tools.GenerateNativeHeader with java.lang.annotation.Native.
> This first step is to add the new annotation.
> Separately, the goal is to replacing existing uses of
> @GenerateNativeHeader with @Native. Then, we will remove
> -- Jon
I'm very happy to see @GenerateNativeHeader been replaced with @Native.
The addition looks good, thumbs up from me.
More information about the core-libs-dev