Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8273257

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 18
    • 17, 18
    • tools
    • b14

      jshell is not compiling this code:

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

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

              Created:
              Updated:
              Resolved: