jshell doesn't compile a sealed hierarchy with a sealed interface and a non-sealed leaf

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 18
    • Affects Version/s: 17, 18
    • Component/s: tools
    • b14

      jshell is not compiling this code:

      sealed interface I permits C {}
      non-sealed class C implements I {}

            Assignee:
            Jan Lahoda
            Reporter:
            Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: