Error: Non-static method overrides static method

Florian Bourgier fbourgier@sycomore-multimedia.com
Thu Jun 24 13:18:00 GMT 2004


Hello,

I was working under Cygwin with gcj 3.3.1-3.
I tried to compile Java Activation Framework. I got the error mentionned 
here (http://gcc.gnu.org/ml/gcc-bugs/2003-06/msg02019.html).
So I upgraded to gcj 3.4. JAF is compiling ok.
But my source code is not. And I have only one type of errors (non 
static method overrides static method). For example, the following one

FrameworkFactory.java: In class `FrameworkFactory':
In method `FrameworkFactory.getFramework()':
 error: non-static method 'getLoggingName()' overrides static method

I cannot see what is wrong, because most of the time, the method 
specified is not inherited and does not exist in parent classes.
Can you help me ?

I have another questions about the error above. Why is the compilation 
going inside method and looking for objects contained in the method ? As 
if it was execution...

Thanks for your help.

Regards

Florian BOURGIER



More information about the Java mailing list