Yes, default methods would be the right approach here. In Groovy 3, we currently use traits under the covers to implement default methods in interfaces. The plan was to output native default methods in Groovy 4 (maybe always, maybe just with @CompileStatic) and then the default parameter values might come almost for free.
On Wed, Jan 6, 2021 at 8:23 AM MG <mg...@arscreat.com> wrote: > Yes, sorry, indeed there is Jochen: I overlooked that the reply was by > you and not the initial poster ;-) > > Since we use Groovy only, I have no experience how Groovy traits behave > for Java cross-compilation, but supporting default parameters in > interfaces sounds like a good idea in principle regardless, since it is > one of those "why would that _not_ be supported here ?" scenarios... > > Cheers, > mg > > > On 05/01/2021 17:30, Jochen Theodorou wrote: > > > > I think there is a misunderstanding... > > >