[Bug java/18131] [meta-bug] inner class problems in java front-end
-- Bug 18131 depends on bug 17747, which changed state. Bug 17747 Summary: bogus duplicate class errors http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17747 What|Old Value |New Value Status|UNCONFIRMED |RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18131
[Bug java/17747] bogus duplicate class errors
--- Additional Comments From ruben at ugr dot es 2004-11-04 11:59 --- Works on gcc 3.4.2 -- What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17747
[Bug java/17747] bogus duplicate class errors
--- Additional Comments From ruben at ugr dot es 2004-11-04 11:58 --- (In reply to comment #0) > There seem to be some problems with inner classes. > > This is from the freenet project > http://freenetproject.org/snapshots/freenet-stable-latest.src.tar.bz2 > untar; > cd source/src/ > gcj freenet/diagnostics/CountingProcess.java > javac freenet/diagnostics/CountingProcess.java > > Sorry, no small testcase yet. > > gcj freenet/diagnostics/CountingProcess.java > ./freenet/diagnostics/Continuous.java:29: error: Class > `freenet.diagnostics.Continuous$ContinuousEventCallback' already defined in > freenet/diagnostics/Continuous$ContinuousEventCallback.java:0. > public static abstract class ContinuousEventCallback implements > RandomVar.EventCallback { > ^ > 1 error > > javac freenet/diagnostics/CountingProcess.java > #no error Works as of gcc 3.4.2 and freenet-stable-latest.src.25.Oct.2004.tar.bz2 Please close -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17747
[Bug java/10581] ICE compiling freenet
--- Additional Comments From ruben at ugr dot es 2004-11-04 11:55 --- (In reply to comment #6) > (In reply to comment #5) > > Somebody will have to check with mainline and newer 3.4 then > Tested with freenet-stable-latest.src.25.Oct.2004.tar.bz2 > and gcc version 3.4.2 (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5) > make -f Makefile.gcj freenet/client/RequestManager.o > Works > > Other files fail, though > I'd close this bug report and add a new one, but I think I already opened > one on ThrottledAsyncEntropyYarrow.java > > Compiling: freenet/node/Main.java > ./freenet/crypt/ThrottledAsyncEntropyYarrow.java:49: error: '(' expected. > > ThrottledAsyncEntropyYarrow.super.acceptEntropy(e.source, e.data, e.entropyGuess); > ^ > 1 error > make: *** [freenet/node/Main.o] Error 1 I just copied the two files from the old version over the new files and recompiled, and got the same problem in ThrottledAsyncEntropyYarrow. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10581
[Bug java/10581] ICE compiling freenet
--- Additional Comments From ruben at ugr dot es 2004-11-04 11:47 --- (In reply to comment #5) > Somebody will have to check with mainline and newer 3.4 then Tested with freenet-stable-latest.src.25.Oct.2004.tar.bz2 and gcc version 3.4.2 (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5) make -f Makefile.gcj freenet/client/RequestManager.o Works Other files fail, though I'd close this bug report and add a new one, but I think I already opened one on ThrottledAsyncEntropyYarrow.java Compiling: freenet/node/Main.java ./freenet/crypt/ThrottledAsyncEntropyYarrow.java:49: error: '(' expected. ThrottledAsyncEntropyYarrow.super.acceptEntropy(e.source, e.data, e.entropyGuess); ^ 1 error make: *** [freenet/node/Main.o] Error 1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10581
[Bug java/17691] error on valid java code from freenet
--- Additional Comments From ruben at ugr dot es 2004-09-28 09:13 --- (In reply to comment #4) This might be a completely unrelated bug; at least the error message is different. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17691
[Bug java/17691] error on valid java code from freenet
--- Additional Comments From ruben at ugr dot es 2004-09-28 09:10 --- The workaround does not work when in an inner class. This was the original problem. >cat a.java class A { int x() { return 0; } } class B extends A { int x(){ return 1; } class C { int y(){ return B.super.x(); } } } >javac a.java #no error >gcj a.java a.java:13: error: 'class' or 'this' expected. return B.super.x(); ^ 1 error -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17691