Error: Non-static method overrides static method
Florian Bourgier
fbourgier@sycomore-multimedia.com
Thu Jun 24 14:40:00 GMT 2004
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
More information about the Java
mailing list