From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailtransmit05.runbox.com (mailtransmit05.runbox.com [IPv6:2a0c:5a00:149::26]) by sourceware.org (Postfix) with ESMTPS id E55403858D3C for ; Tue, 28 Feb 2023 19:27:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E55403858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bothner.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bothner.com Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1pX5ct-00FC3q-Qv; Tue, 28 Feb 2023 20:27:03 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bothner.com ; s=selector1; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID; bh=d/mZoNbvoHp51tTyjN/c1MnqBJkKRdBHSuhSgqJfL18=; b=A7AxFjEibT67f6DnwLMzQjsb8m kHkFVaQ1Ebew7Z1qYDlVLb1StTri7J5vnI0oecPYSA0drdjcfH8qMlMRP0xYyxzolJOSwIBHalzCs DR2lkjg7PWr0BsnjgsAwL7SzvFbbh+BLFyNTRz7ayowoqbq0wQMT8SaqY+xn+6w0lGYlc0dGyDEjG LLARm3ee9MLVgwOAXveXdK1fXqncff5wHfu0gkX+eC84tOVddv4oVQg+5/sg21XUdz3kFzWOZRkcb ViCaAxLVlhTZcPJBHsc8m0bXv7hp/3f2VVFLD4NfvhQ6ZaS/tqkZUcJLzlL4OphSjvSuUaRJO5t6Q aXhHqF0A==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1pX5ct-0007p6-Ac; Tue, 28 Feb 2023 20:27:03 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (524175)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1pX5cf-00035m-Ra; Tue, 28 Feb 2023 20:26:50 +0100 Message-ID: <48704d5d-d836-4276-c115-8cd0d7af5f8c@bothner.com> Date: Tue, 28 Feb 2023 11:26:43 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: Having trouble using JAX-RS annotation in Kawa Scheme class Content-Language: en-US To: Ross Merrifield , kawa@sourceware.org References: From: Per Bothner In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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/