GCC Bugzilla has been upgraded from version 4.4.9 to 5.0rc3. If you see any problem, please report it to bug 64968.
Bug 17747 - bogus duplicate class errors
Summary: bogus duplicate class errors
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 3.4.2
: P2 normal
Target Milestone: 3.4.2
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: 18131
  Show dependency treegraph
 
Reported: 2004-09-30 10:26 UTC by Ruben Garcia
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ruben Garcia 2004-09-30 10:26:15 UTC
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
Comment 1 Ruben Garcia 2004-11-04 11:58:31 UTC
(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
Comment 2 Ruben Garcia 2004-11-04 11:59:56 UTC
Works on gcc 3.4.2