Summary: | Error calling method from enclosing context in constructor | ||
---|---|---|---|
Product: | gcc | Reporter: | Bryce McKinlay <bryce> |
Component: | java | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | csm, eclipse.lists, gcc-bugs, java-prs, jmr, stepan, taral |
Priority: | P3 | Keywords: | rejects-valid |
Version: | unknown | ||
Target Milestone: | 4.3.0 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2005-09-23 23:19:04 | |
Bug Depends on: | 28067 | ||
Bug Blocks: | 9943, 13607, 18131 |
Description
Bryce McKinlay
2001-10-25 20:16:00 UTC
From: Dara Hazeghi <dhazeghi@yahoo.com> To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: java/4695: Error calling method from enclosing context in constructor Date: Mon, 12 May 2003 11:29:36 -0700 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- trail&database=gcc&pr=4695 Hello, I can verify that on 3.2, 3.3 branch and mainline (20030510) on i686-linux, the same error occurs: EnclosingCall.java: In class `EnclosingCall$Inner': EnclosingCall.java: In constructor `(EnclosingCall)': EnclosingCall.java:12: error: Can't reference `this' before the superclass constructor has been called. this(foo()); ^ 1 error Dara See Dara's comment. Still happens on the mainline (20030709). *** Bug 7298 has been marked as a duplicate of this bug. *** *** Bug 16284 has been marked as a duplicate of this bug. *** *** Bug 18215 has been marked as a duplicate of this bug. *** *** Bug 20659 has been marked as a duplicate of this bug. *** *** Bug 27037 has been marked as a duplicate of this bug. *** So why does this work when compiling via bytecode? All gcj front end bugs have been fixed by the gcj-eclipse branch merge. I'm mass-closing the affected PRs. If you believe one of these was closed in error, please reopen it with a note explaining why. Thanks. |