Fwd: Need reviewer (original) (raw)

Fwd: Need reviewer - @GenerateNativeHeader

Artem Ananiev artem.ananiev at oracle.com
Wed May 23 02:48:43 PDT 2012


Hi, Kelly,

here is my AWT OK :)

Thanks,

Artem

On 5/23/2012 5:25 AM, Kelly O'Hair wrote:

FYI...

A review and OK from the awt team would be nice here. ;^) -kto Begin forwarded message: *From: *"Kelly O'Hair" <kelly.ohair at oracle.com_ _<mailto:kelly.ohair at oracle.com>> *Subject: *Need reviewer - @GenerateNativeHeader *Date: *May 22, 2012 6:14:54 PM PDT *To: *"build-dev at openjdk.java.net <mailto:build-dev at openjdk.java.net> build-dev" <build-dev at openjdk.java.net_ _<mailto:build-dev at openjdk.java.net>>

7170969: Add @GenerateNativeHeader to classes whose fields need to be exported for JNI http://cr.openjdk.java.net/~ohair/openjdk8/generateHeaders1/webrev/ The new build infrastructure wants to fully automate the generation of the JNI header files (running javah). On classes that have "native" methods this is obvious, but class that only export constants, and whose constants are needed in the JNI native code, we need to mark these classes as needing their native header file generated. This change is adding: import javax.tools.annotation.GenerateNativeHeader; /* No native methods here, but the constants are needed in the supporting JNI code */ @GenerateNativeHeader To any class without a native method, but needing to expose it's constants to the native code. -kto



More information about the awt-dev mailing list