public inbox for
 help / color / mirror / Atom feed
From: Panicz Maciej Godek <>
Subject: A protected slot is not accessible in a subclass
Date: Thu, 24 Mar 2022 23:14:42 +0100	[thread overview]
Message-ID: <> (raw)

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)
   (invoke-special gnu.mapping.Symbol (("foo":toString):intern)
   (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?

             reply	other threads:[~2022-03-24 22:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-24 22:14 Panicz Maciej Godek [this message]
2022-03-25  4:56 ` Per Bothner
2022-03-25  9:59   ` Panicz Maciej Godek
2022-03-25 18:46     ` Per Bothner
2022-03-25 20:53       ` Panicz Maciej Godek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).