From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by sourceware.org (Postfix) with ESMTPS id 815F13858016 for ; Thu, 24 Mar 2022 22:14:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 815F13858016 Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-2db2add4516so66177227b3.1 for ; Thu, 24 Mar 2022 15:14:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=APh9WCjxr7YiCSpdmJ7BouftCF+yXnRm2Yb7j+pZJzs=; b=WHk/Wz9QBy7q2xB8LtdkteXOY/oPzilhDAABW0n9yGR+bjrlp95pPMLHotjMzw97Tu vI9lwmNQqnpLBe+MOIMnyxJ37M4auVjXyftLpxPgTfN0k0Z70gJ6h/51nDGYA/enjRLL oyLRbbHRx3a1Q3FHBptMmFZE9vqLqsolSFuaQDw5/V7eASJdpOqtgrC9j6WxxIqAH+Se GI+EII7esojiZsNt7Uq6iKdnezEsdK6AMAfYK4OPhDhWGv8aPF33g7RgM98STzpn0kl1 kTHFwYlVUyS+5dLcu3Zlub54NVgSyavTpF3l/eV0YGfZ+dLTEE3Z64Ct3X1LPq3cwK/W IX0w== X-Gm-Message-State: AOAM532yym08TxUv8fG1iwRPyoi+F/lmzUWlNW7nyFWRMCB3HVzoSTBD zYJJZ6pOpX5LdRV9EAl5clKqWnFVz8tNhMesq7Di5nsc/us= X-Google-Smtp-Source: ABdhPJwYn7vE1pXZho8PUMuVEIDwOsCXC9AnMuOTjVnWU34fnB6rPHRCWFqRbcksEpj0SClPVIb+9z0yibKojXlK2xk= X-Received: by 2002:a81:e343:0:b0:2db:58be:a8c7 with SMTP id w3-20020a81e343000000b002db58bea8c7mr7173072ywl.138.1648160095649; Thu, 24 Mar 2022 15:14:55 -0700 (PDT) MIME-Version: 1.0 From: Panicz Maciej Godek Date: Thu, 24 Mar 2022 23:14:42 +0100 Message-ID: Subject: A protected slot is not accessible in a subclass To: kawa@sourceware.org X-Spam-Status: No, score=-0.6 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: kawa@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Kawa mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Mar 2022 22:14:58 -0000 Hi, I'm trying to sub-class the class gnu.mapping.Symbol from within Kawa. In the source code, the class has a protected field: protected String name; But when I subclass it like this: (define-simple-class S (gnu.mapping.Symbol) ((*init*) (invoke-special gnu.mapping.Symbol (("foo":toString):intern) gnu.mapping.Namespace:EmptyNamespace) (set! name (("bar":toString):intern)))) I get the following error: slot 'name' in gnu.mapping.Symbol not accessible here What are the rules for accessing protected members in Kawa?