Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8222378

Provide mechanism to query preview feature status for annotation processors

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 13
    • 11, 12, 13
    • core-libs
    • None

      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.

            darcy Joe Darcy
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: