Groovy 4 vs Java 17 sealed classes: can Groovy extend a sealed Java class?
Groovy 4 vs Java 17 sealed classes: can Groovy extend a sealed Java class? The goal is to determine whether Groovy 4 can legally extend a sealed Java 17 class or interface, and if so, how the compiler and runtime enforce the sealed hierarchy. Current observations indicate that Groovy 4’s compiler accepts subclasses of sealed Java types that are not listed in