JDK-8222378 : Provide mechanism to query preview feature status for annotation processors
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: javax.annotation.processing
  • Affected Version: 11,12,13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-04-11
  • Updated: 2019-04-24
  • Resolved: 2019-04-15
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 13
13 b17Fixed
Related Reports
CSR :  
Relates :  
Description
Annotation processors need the ability to query the environment to determine the language level being used so that valid code can be generated. The ProcessingEnvironment.getSourceVersion() method provides the basis of this functionality.

With preview features (JDK-8195734), processors need an analogous capability to determine if the preview features are enabled and available for use.
Comments
Review thread: https://mail.openjdk.java.net/pipermail/compiler-dev/2019-April/013229.html
12-04-2019