JDK-8273257 : jshell doesn't compile a sealed hierarchy with a sealed interface and a non-sealed leaf
  • Type: Bug
  • Component: tools
  • Sub-Component: jshell
  • Affected Version: 17,18
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-09-02
  • Updated: 2021-09-03
  • Resolved: 2021-09-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18 masterFixed
Related Reports
Relates :  
Description
jshell is not compiling this code:

sealed interface I permits C {}
non-sealed class C implements I {}
Comments
Changeset: 7b023a3f Author: Jan Lahoda <jlahoda@openjdk.org> Date: 2021-09-03 09:30:56 +0000 URL: https://git.openjdk.java.net/jdk/commit/7b023a3f607f44da1b13bc9d2884a5f13723d524
03-09-2021