From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id 10AF03858D33 for ; Tue, 28 Feb 2023 19:42:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 10AF03858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-x435.google.com with SMTP id l1so7919811wry.12 for ; Tue, 28 Feb 2023 11:42:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677613367; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Ge6Gj7jBqieHRfU2yARyrEEFxZciPRkGBVG+uO8M5BM=; b=QQ/2qqwsOEUzftv8+SApjkH4s8d8TOcT/+Z6jokcx1g3+CNPQLT7BG2QwwGMj69HAt hEv9p1LuRTgKDeIEHNnZGFk/JTxB5qSlVca9IpztMS+pVD0D8nKnyy8Xoh6UQC2Dlefs GE16i1FLMM3DR5AYoRN/4qkSEcJJKSBu+R75ZLlHtvNT50gj6ysSs10zNqxQmnGUdczF vXj6AgSVMo5FhD2TIWTqRwRZjD/kkOP73jlmomi6kY5ximRCDtuxuWzYY5vL+Nwt4dpo wCElDcmLQIooUDL6iPe4wam5MkqhlCNsfPGNpfGdJ42SCflgZsyMez2/CVw6zqNNUOGT Trig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677613367; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ge6Gj7jBqieHRfU2yARyrEEFxZciPRkGBVG+uO8M5BM=; b=6zC1cRxdchzSkDHns+ERz1qflOSOyCBdIssiPJZCOeeebvu2tsjEywsskkbHYOHucd 2BHjI2VRiAMHJMEP3JSiKO3HBO8QvFZCAdoF2MzcQDaP+0pvKxVecxdBedF0xKvo92Bh dnuqnIfIu7gXKWAOVrHHvWo5YgNGy4C+JYiVTbzt8EIDafKrb0jVZbct1qH+yU7JkgH2 +ejhv6aiONi0+u52vClLhtbpTbMANL/ctsVyYPVlc7LdwfNViUSugGXIIUUtyCQ8M+Nx +6flmKh4k4808HoHCXrJjxkQNMLtvZOSB61HiqpjAQq55X+SO4bhPpdUoPcro2KAZVg9 Os2w== X-Gm-Message-State: AO0yUKW0HZK7QyEQxuFRPtqkdEwlL6t+XLQtPGeIPyscT7OtEhkadNCA drqvSkJRMCB5FsHf35xnAcxLgt239k0LdgAeEVkhb2jd/jU= X-Google-Smtp-Source: AK7set8jaK/ITCJCngukPok1/a/n4AYZ8+jKqw9Z75ReZSjaodUDlHuwlUp8v7GtPxc0Y9Wv9JqKRc0PwlNPTKcIPTw= X-Received: by 2002:adf:e848:0:b0:2c9:96b6:1a4a with SMTP id d8-20020adfe848000000b002c996b61a4amr817897wrn.8.1677613366734; Tue, 28 Feb 2023 11:42:46 -0800 (PST) MIME-Version: 1.0 References: <48704d5d-d836-4276-c115-8cd0d7af5f8c@bothner.com> In-Reply-To: <48704d5d-d836-4276-c115-8cd0d7af5f8c@bothner.com> From: Ross Merrifield Date: Tue, 28 Feb 2023 11:42:36 -0800 Message-ID: Subject: Re: Having trouble using JAX-RS annotation in Kawa Scheme class To: Per Bothner Cc: kawa@sourceware.org Content-Type: multipart/alternative; boundary="000000000000cb73a205f5c7cc6b" X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,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: --000000000000cb73a205f5c7cc6b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=E2=80=AFAM Per Bothner wrot= e: > 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/ > --000000000000cb73a205f5c7cc6b--