This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Error: Non-static method overrides static method
- From: Florian Bourgier <fbourgier at sycomore-multimedia dot com>
- To: java at gcc dot gnu dot org
- Date: Thu, 24 Jun 2004 16:32:53 +0200
- Subject: Re: Error: Non-static method overrides static method
Thnaks for answering.
>> FrameworkFactory.java: In class `FrameworkFactory':
>> In method `FrameworkFactory.getFramework()':
>> error: non-static method 'getLoggingName()' overrides static method
>
>I've noticed this too and forgot to report it (instead, I just patched
the offending source). It occurs in compiling the Mozilla integration of
SWT 3.0Mx
What changes did you do to make it compile ?
> It seems that >GCJ barfs if a subclass redeclares a method with the
same name as a static method in the base class.
> Under regular javac, this is allowed and is no problem (since you
>have to call the methods in two different ways). Cheers, Rob
Is there any chance to get that fixed quickly ?
I want to notice that as I said in my first mail, it does not appear
that the method on which the error append be present in the parent
classe. I do not know why there is this error. How is it possible ?
Thansk for your help.
Regards,
Florian BOURGIER