From: Panicz Maciej Godek <godek.maciek@gmail.com>
To: kawa <kawa@sourceware.org>
Subject: Default methods in interfaces
Date: Mon, 27 Feb 2023 11:09:05 +0100 [thread overview]
Message-ID: <CAMFYt2YBfyBf8FGdqAijqQ-bKCftF0E3xbeQOLdTuFUBXi104A@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 781 bytes --]
Hi,
is there a way to use interface default methods in Kawa?
suppose that I have an interface defined like this:
(define-simple-class I () interface: #t
((m key) #!abstract)
((contains key)::boolean (not (eq? #!null (m key)))))
When I try running this raw, Kawa complains:
Exception in thread "main" java.lang.ClassFormatError: Code attribute in
native or abstract methods in class file I
But when I try to add allocation: 'default or access: 'default before the
method's body, I get either
unknown allocation specifier
or
unknown access specifier (quote default)
error. I haven't found any mention of "default methods" in the Kawa manual,
so I wonder whether this feature is supported, or whether it would be hard
to add support for it to Kawa.
Best regards,
Panicz
reply other threads:[~2023-02-27 10:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMFYt2YBfyBf8FGdqAijqQ-bKCftF0E3xbeQOLdTuFUBXi104A@mail.gmail.com \
--to=godek.maciek@gmail.com \
--cc=kawa@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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).