public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/20659] New: gcj: Can't reference 'this' before the superclass constructor
@ 2005-03-28 6:09 ovidr at users dot sourceforge dot net
2005-03-28 7:40 ` [Bug java/20659] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: ovidr at users dot sourceforge dot net @ 2005-03-28 6:09 UTC (permalink / raw)
To: java-prs
gcc version 4.0.0 20041213
javac Bla.java works.
gcj -C Bla.java (or -c)
Bla.java: In class 'Bla$B':
Bla.java: In constructor '(Bla)':
Bla.java:18: error: Can't reference 'this' before the superclass constructor
has been called.
super(doit());
^
1 error
------------------------------
public class Bla {
protected int doit() {
return 1;
}
public class A {
public A(int i) {
}
}
public class B extends A {
public B() {
super(doit());
}
}
}
--
Summary: gcj: Can't reference 'this' before the superclass
constructor
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ovidr at users dot sourceforge dot net
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20659
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug java/20659] gcj: Can't reference 'this' before the superclass constructor
2005-03-28 6:09 [Bug java/20659] New: gcj: Can't reference 'this' before the superclass constructor ovidr at users dot sourceforge dot net
@ 2005-03-28 7:40 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-28 7:40 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-27 22:17 -------
*** This bug has been marked as a duplicate of 4695 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
Summary|gcj: Can't reference 'this' |gcj: Can't reference 'this'
|before the superclass |before the superclass
|constructor |constructor
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20659
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-27 22:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-28 6:09 [Bug java/20659] New: gcj: Can't reference 'this' before the superclass constructor ovidr at users dot sourceforge dot net
2005-03-28 7:40 ` [Bug java/20659] " pinskia at gcc dot gnu dot org
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).