public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: julias@macrovision.com To: gcc-gnats@gcc.gnu.org Subject: java/9943: field reference of enclosing class in an inner class cannot be compiled. Date: Tue, 04 Mar 2003 19:06:00 -0000 [thread overview] Message-ID: <20030304190537.6877.qmail@sources.redhat.com> (raw) >Number: 9943 >Category: java >Synopsis: field reference of enclosing class in an inner class cannot be compiled. >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Tue Mar 04 19:06:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: julia smith >Release: unknown-1.0 >Organization: >Environment: linux >Description: The compiler incorectly identifies "m_opts" as a super class field. It is a field of the embeddeding class, but not a member of the class or the super class being defined. gcj -c testcase.java testcase.java: In class `testcase$option': testcase.java: In constructor `(testcase)': testcase.java:22: Can't reference `m_opts' before the superclass constructor has been called. super(m_opts); ^ 1 error >How-To-Repeat: invoke: gcj -c testcase.java >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/x-java; name="testcase.java" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="testcase.java" DQppbXBvcnQgamF2YS51dGlsLio7DQoNCmNsYXNzIHRvb2xvcHQNCnsNCiAgcHVibGljIHRvb2xv cHQgKEhhc2h0YWJsZSB0KQ0KICB7DQogIH0NCn0NCg0KY2xhc3MgdG9vbA0Kew0KICBwcm90ZWN0 ZWQgSGFzaHRhYmxlIG1fb3B0czsNCn0NCg0KcHVibGljIGNsYXNzIHRlc3RjYXNlIGV4dGVuZHMg dG9vbA0Kew0KICBjbGFzcyBvcHRpb24gZXh0ZW5kcyB0b29sb3B0DQogIHsNCiAgICBvcHRpb24g KCkNCiAgICB7DQogICAgICBzdXBlcihtX29wdHMpOw0KICAgIH0NCiAgfQ0KfQ0K
next reply other threads:[~2003-03-04 19:06 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-03-04 19:06 julias [this message] 2003-05-03 1:45 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=20030304190537.6877.qmail@sources.redhat.com \ --to=julias@macrovision.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).