This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Class already defined -- same file, same line
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: Starling <thesynxj8jw at pacbell dot net>
- Cc: GCJ <java at gcc dot gnu dot org>
- Date: Mon, 30 Aug 2004 13:17:05 +0530
- Subject: Re: Class already defined -- same file, same line
- References: <87sma5u3d9.fsf@pacbell.net>
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/