Just an FYI, the support for @A({ ... }) is tracked by https://issues.apache.org/jira/browse/GROOVY-11492
________________________________ From: Paul King <pa...@asert.com.au> Sent: Friday, April 11, 2025 5:20 AM To: dev@groovy.apache.org <dev@groovy.apache.org> Subject: [EXT] Re: Lists in annotations External Email: Use caution with links and attachments. I think it is just the case that Java supports only a single value or array notation, so that's what we did too (just adapting to Groovy array/list notation). We have certainly had folks ask if we could also support the curly brace syntax but that clashes with a closure. It would be interesting to see whether it is a simple or ugly change at the grammar/early parsing level. Cheers, Paul. On Fri, Apr 11, 2025 at 7:19 PM Gianluca Sartori <g.sart...@gmail.com> wrote: > > Hi folks, > > we use the following well known annotation in our Grails controllers: > > @Secured(['ROLE_USER', 'ROLE_OTHER']) > > I was wondering why we cannot write this instead: > > @Secured('ROLE_USER', 'ROLE_OTHER') > > like in method calls. > > To your knowledge is that a Groovy thing or it lies somewhere else? > > Cheers, > Gianluca Sartori >