Provide mechanism to query preview feature status for annotation processors

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: 11, 12, 13
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: