public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: p.thio@valescom.com To: gcc-gnats@gcc.gnu.org Subject: java/3285: gcj fails to resolve constructor calls in inner classes Date: Wed, 20 Jun 2001 02:56:00 -0000 [thread overview] Message-ID: <20010620095153.26237.qmail@sourceware.cygnus.com> (raw) >Number: 3285 >Category: java >Synopsis: gcj fails to resolve constructor calls in inner classes >Confidential: no >Severity: serious >Priority: high >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Jun 20 02:56:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: p.thio@valescom.com >Release: unknown-1.0 >Organization: >Environment: gcj gcc_ss_20010611 on linux >Description: Compile the following code with gcj. The code compiles with javac. gcj --main=Test Test.java Test.java: In class `Test$1': Test.java: In method `(Test,C1)': Test.java:25: No constructor matching `(Test,C1)' found in class `C2'. C1 c1 = new C1(); ^ 1 error --------------- Test.java ----------------------------- interface I { }; class C1 implements I { } abstract class C2 { C2(I i) { } abstract void h(); } public class Test { public static void main(String argv[]) { C1 c1 = new C1(); new C2(c1) { void h() { } }; } } >How-To-Repeat: use: gcj --main=Test Test.java >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="Test.java" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Test.java" aW50ZXJmYWNlIEkKewp9OwoKY2xhc3MgQzEKaW1wbGVtZW50cyBJCnsKfQoKYWJzdHJhY3QKY2xh c3MgQzIKewogICAgQzIoSSBpKQogICAgewogICAgfQogICAgYWJzdHJhY3Qgdm9pZCBoKCk7Cn0K CnB1YmxpYwpjbGFzcyBUZXN0CnsKICAgIHB1YmxpYyBzdGF0aWMKICAgIHZvaWQgbWFpbihTdHJp bmcgYXJndltdKQogICAgewogICAgICAgIEMxIGMxID0gbmV3IEMxKCk7CiAgICAgICAgbmV3IEMy KGMxKQogICAgICAgIHsKICAgICAgICAgICAgdm9pZCBoKCkKICAgICAgICAgICAgewogICAgICAg ICAgICB9CiAgICAgICAgfTsKICAgIH0KfQo=
next reply other threads:[~2001-06-20 2:56 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-06-20 2:56 p.thio [this message] 2001-07-12 0:54 apbianco 2001-12-15 8:37 rodrigc
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=20010620095153.26237.qmail@sourceware.cygnus.com \ --to=p.thio@valescom.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: linkBe 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).