public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: jsturm@one-point.com
To: gcc-gnats@gcc.gnu.org
Subject: libgcj/7060: getMethod() doesn't search super interface
Date: Mon, 17 Jun 2002 14:24:00 -0000	[thread overview]
Message-ID: <20020617204539.4660.qmail@sources.redhat.com> (raw)


>Number:         7060
>Category:       libgcj
>Synopsis:       getMethod() doesn't search super interface
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 17 13:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Sturm
>Release:        3.1
>Organization:
>Environment:
sparcv9-sun-solaris2.8
>Description:
java.lang.class.getMethod() doesn't appear to search superinterfaces for method declarations.
>How-To-Repeat:
Compile/run the attached code.  JDK output:

$ java C
public abstract void A.a()
public abstract void A.a()

libgcj output:

$ ./c
public abstract void A.a()
java.lang.NoSuchMethodException
   at 0xffffffff7ec0a348: _ZN4java4lang9ThrowableC1Ev (/opt/gcc/lib/libgcj.so.3)   at 0xffffffff7ebe5e54: _ZN4java4lang5Class9getMethodEPNS0_6StringEP6JArrayIPS1_E (/opt/gcc/lib/libgcj.so.3)
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="C.java"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="C.java"

aW50ZXJmYWNlIEEgewogIHZvaWQgYSgpOwp9CgppbnRlcmZhY2UgQiBleHRlbmRzIEEgewp9Cgpw
dWJsaWMgY2xhc3MgQyB7CiAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykg
ewogICAgdHJ5IHsKICAgICAgU3lzdGVtLm91dC5wcmludGxuKEEuY2xhc3MuZ2V0TWV0aG9kKCJh
IiwgbmV3IENsYXNzWzBdKSk7CiAgICB9IGNhdGNoIChUaHJvd2FibGUgdCkgewogICAgICB0LnBy
aW50U3RhY2tUcmFjZSgpOwogICAgfQogICAgdHJ5IHsKICAgICAgU3lzdGVtLm91dC5wcmludGxu
KEIuY2xhc3MuZ2V0TWV0aG9kKCJhIiwgbmV3IENsYXNzWzBdKSk7CiAgICB9IGNhdGNoIChUaHJv
d2FibGUgdCkgewogICAgICB0LnByaW50U3RhY2tUcmFjZSgpOwogICAgfQogIH0KfQo=


             reply	other threads:[~2002-06-17 20:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-17 14:24 jsturm [this message]
2002-06-18 14:45 Jeff Sturm
2002-07-05 13:34 tromey

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=20020617204539.4660.qmail@sources.redhat.com \
    --to=jsturm@one-point.com \
    --cc=gcc-gnats@gcc.gnu.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).