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

Provide mechanism to query preview feature status for annotation processors

    XMLWordPrintable

Details

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

    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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: