This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Class already defined -- same file, same line


Starling wrote:

> I was attempting to use gcj on a project the Sun java implementation
> on Linux does particularly abysmally about, and received the following
> error:
> ---
> ./project/OpenConnectionManager.java:46: error: Class `project.OpenConnectionMan
> ager' already defined in project/OpenConnectionManager.java:46.
>    public final class OpenConnectionManager implements Checkpointed {
>                       ^
> ./project/OpenConnectionManager.java:98: confused by earlier errors, bailing out
> make: *** [project/OpenConnectionManager.o] Error 1
> ---

This bug should be fixed now on the mainline. If you can,
I would advise you to pull a CVS snapshot, compile it and
use it.

Otherwise, you can try playing with the order of the
files on the command line or using one file per
compiler invocation, but that might (most likely)
not fix the problem.

Ranjit.

-- 
Ranjit Mathew          Email: rmathew AT gmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]