public inbox for
 help / color / mirror / Atom feed
* Re: Having trouble using JAX-RS annotation in Kawa Scheme class
       [not found] <>
@ 2023-02-28 19:26 ` Per Bothner
  0 siblings, 0 replies; only message in thread
From: Per Bothner @ 2023-02-28 19:26 UTC (permalink / raw)
  To: Ross Merrifield, kawa

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:
-which I can't remember off-hand and don't feel like looking up.
	--Per Bothner

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-28 19:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
2023-02-28 19:26 ` Having trouble using JAX-RS annotation in Kawa Scheme class Per Bothner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).