From: Per Bothner <per@bothner.com>
To: Panicz Maciej Godek <godek.maciek@gmail.com>, kawa@sourceware.org
Subject: Re: <unknown>
Date: Tue, 13 Sep 2022 07:56:34 -0700 [thread overview]
Message-ID: <062a0c48-e4c8-74d4-2a22-6bfef89e7976@bothner.com> (raw)
In-Reply-To: <CAMFYt2bEiKK4+hc6wYY150Jqgr44Zca=EieRXuEoZw1w4N4vyg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 132 bytes --]
Try the attached patch to see if you get a more helpful error message.
--
--Per Bothner
per@bothner.com http://per.bothner.com/
[-- Attachment #2: cl-err-patch.txt --]
[-- Type: text/plain, Size: 1066 bytes --]
diff --git a/gnu/expr/ClassExp.java b/gnu/expr/ClassExp.java
index b8ce460b2..40b45f816 100644
--- a/gnu/expr/ClassExp.java
+++ b/gnu/expr/ClassExp.java
@@ -643,10 +643,11 @@ public class ClassExp extends LambdaExp
generateBridgeMethod(comp, impl, ptypes, rtype);
} else {
// FIXME - need better error message!
- String msg = vec.size() == 0
- ? "missing implementation for "
- : "ambiguous implementation for ";
- comp.error('e', msg+meth);
+ String msg = "non-abstract class "+getName();
+ msg += vec.size() == 0
+ ? " is missing implementation for "
+ : " has ambiguous implementation for ";
+ comp.error('e', msg+meth, this);
}
} else {
Method impl
next prev parent reply other threads:[~2022-09-13 14:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-13 13:31 <unknown> Panicz Maciej Godek
2022-09-13 14:56 ` Per Bothner [this message]
2022-09-16 19:24 ` <unknown> Panicz Maciej Godek
2022-09-19 10:45 ` <unknown> Per Bothner
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=062a0c48-e4c8-74d4-2a22-6bfef89e7976@bothner.com \
--to=per@bothner.com \
--cc=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).