JShell does not recognize "non-sealed" as a keyword at top level

Vicente Romero vicente.romero at oracle.com
Thu Sep 2 01:11:23 UTC 2021


Hi Remi,

Thanks for the report, I have created [1] to track this issue,

Vicente

[1] https://bugs.openjdk.java.net/browse/JDK-8273257

On 8/31/21 5:46 PM, Remi Forax wrote:
> sealed interface Component permits Label, Button, Canvas {}
> record Label(String name) implements Component {}
> final class Button implements Component {}
> non-sealed class Canvas implements Component {}



More information about the compiler-dev mailing list