Sealed Classes: Prohibit member classes of local/anonymous classes

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 16
    • Affects Version/s: 15
    • Component/s: specification

      Per this design discussion:

      https://mail.openjdk.java.net/pipermail/amber-spec-experts/2020-May/002161.html

      The consensus is that, at least until we revisit the topic, member classes of local/anonymous classes should not be allowed to use the 'sealed' modifier or to extend/implement a sealed class or interface.

      The sealed-classes-jls spec change document should be updated accordingly.

            Assignee:
            Gavin Bierman
            Reporter:
            Dan Smith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: