JDK-8000404 : rename javax.tools.GenerateNativeHeader to java.lang.annotation.Native
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-10-03
  • Updated: 2017-05-17
  • Resolved: 2012-11-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b66Fixed
Related Reports
Relates :  
Relates :  
Sub Tasks
JDK-8000405 :  
JDK-8000406 :  
JDK-8000407 :  
Description
javax.tools.GenerateNativeHeader is a proposed new-in-8 annotation that is used by javac to help determine when to generate native headers.   The package causes issues for JIgsaw, since we would like to use the feature on classes in the base module, but do not want any dependence from the base module to the module containing javax.tools.

Furthermore, it is proposed that the annotation should be directly applied to the constant fields that need to be exported -- and not to the class as a whole.   

Given this, it is proposed to move/rename the annotation to  java.lang.annotation.Native with TargetType FIELD.