This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
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 15:16:07 +0200
- Subject: Error: Non-static method overrides static method
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