Per, The (@Produces (string[] "text/plain")) syntax is working as expected now! Unfortunately, the more elegant ["text/plain"] syntax still results in the 'annotation must be constant' error, but I can live with the more verbose version. Thanks, Ross On Tue, Feb 28, 2023 at 11:27 AM Per Bothner wrote: > On 2/28/23 09:01, Ross Merrifield via Kawa wrote: > > But when I change my Annotation to (@Produces (String[] "text/plain")) I > > get the error "annotation value must be constant". Checking the javadoc > for > > @prodcues does indicate the expected type of the value is String[]: > > I would try one or both of: > > (@Produces ["text/plain"]) ; Most elegant > (@Produces (string[] "text/plain")) ; matches a test in > testsuite/annotations1.scm > > There is a subtle difference between: > string[] > String[] > java.lang.String[] > -which I can't remember off-hand and don't feel like looking up. > -- > --Per Bothner > per@bothner.com http://per.bothner.com/ >