Re: Default for annotation members with type class

2025-04-15 Thread Christopher Smith
The workaround is not to use static compilation for the annotation; it wouldn't do anything anyway. On Tue, Apr 15, 2025, 18:53 Saravanan Palanichamy wrote: > It's under Static compilation. I have raised a ticket for this issue. I am > not sure if there are any work arounds for this issue > > re

Re: Default for annotation members with type class

2025-04-15 Thread Saravanan Palanichamy
It's under Static compilation. I have raised a ticket for this issue. I am not sure if there are any work arounds for this issue regards Saravanan On Tue, Apr 15, 2025 at 6:32 PM Milles, Eric (TR Technology) via dev < dev@groovy.apache.org> wrote: > You should be able to use "default []". I don

Re: Default for annotation members with type class

2025-04-15 Thread Paul King
Yes, those errors are with type checking turned on. We have special handling for that elsewhere but maybe not here yet? On Tue, Apr 15, 2025 at 11:02 PM Milles, Eric (TR Technology) via dev < dev@groovy.apache.org> wrote: > You should be able to use "default []". I don't think it supports > "de

Re: Default for annotation members with type class

2025-04-15 Thread Milles, Eric (TR Technology) via dev
You should be able to use "default []". I don't think it supports "default new Class[0]". Is this under Static Type Checking or Static Compilation? NOTE: https://issues.apache.org/jira/browse/GROOVY-11492 item 3 covers the missing "default {}" support. From: