Add @Meant-to-be-sealed annotation type to guide compiler warnings

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 13
    • Component/s: core-libs
    • None

      Certain types are meant to be *sealed*, not extendable/implementable outside of a certain known set of types (see JDK-8222777).

      Until such a language mechanism exists, it could be helpful to include a "@Meant-to-be-sealed" annotation to help document the intended semantic restriction and to guide compiler warnings.

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

              Created:
              Updated: