Re: [DISCUSS] Some potential additional system properties/CompilerConfiguration flags for Groovy 4

2021-09-21 Thread Mario Garcia
Hi: Here are my thoughts. Maybe I'm wrong but, if somebody is familiar with JDK17 sealed classes, I don't think that person would expect that using sealed syntax with JDK8 is going to output a JDK17 sealed class. I would add it to the documentation and that's it. To me seems that implementing

[DISCUSS] Some potential additional system properties/CompilerConfiguration flags for Groovy 4

2021-09-21 Thread Paul King
Hi folks, [A bit of a long winded explanation but hopefully you will bear with me.] For recent features like sealed classes and records*, we are moving towards implementations which support the feature natively (as per Java) when compiled with a suitable target bytecode version, and fall back to