This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]