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

Jan Lahoda jlahoda at openjdk.java.net
Fri Sep 3 09:34:32 UTC 2021


On Thu, 2 Sep 2021 10:34:13 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> Considering code like:
> 
> non-sealed class C implements Undefined {}
> 
> 
> javac will currently produce these compile-time errors:

This pull request has now been integrated.

Changeset: 7b023a3f
Author:    Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/7b023a3f607f44da1b13bc9d2884a5f13723d524
Stats:     45 lines in 3 files changed: 40 ins; 0 del; 5 mod

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

Reviewed-by: vromero

-------------

PR: https://git.openjdk.java.net/jdk/pull/5348


More information about the compiler-dev mailing list