Incorrect `@since` tags in elements in jdk.compiler and java.compiler

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • 23
    • Affects Version/s: None
    • Component/s: tools
    • b24

      A lot of elements that were in preview before the addition of @PreviewFeature have an incorrect `@since` and it should be fixed, alongside different mistakes in the `@since` in some elements.

      The current rules for handling `@since` in Preview versions is :
      - When an element is still marked as preview, the `@since` should be the first JDK release where the element was added.
      - If the element is no longer marked as preview, the `@since` should be the first JDK release where it was no longer preview.

      The way preview elements were annotated before:
      - in jdk 12-13 they were annotated with @Deprecated(forRemoval=true, since=...)
      - in jdk 14-15 they were annotated with @jdk.internal.preview
      - in jdk 17 @PreviewFeature was added

            Assignee:
            Nizar Benalla
            Reporter:
            Nizar Benalla
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: