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: Tom Tromey <tromey at redhat dot com>
- To: Florian Bourgier <fbourgier at sycomore-multimedia dot com>
- Cc: java at gcc dot gnu dot org
- Date: 28 Jun 2004 12:21:01 -0600
- Subject: Re: Error: Non-static method overrides static method
- References: <40DAD417.2080408@sycomore-multimedia.com>
- Reply-to: tromey at redhat dot com
>>>>> "Florian" == Florian Bourgier <fbourgier@sycomore-multimedia.com> writes:
Florian> FrameworkFactory.java: In class `FrameworkFactory':
Florian> In method `FrameworkFactory.getFramework()':
Florian> error: non-static method 'getLoggingName()' overrides static method
Florian> I cannot see what is wrong, because most of the time, the method
Florian> specified is not inherited and does not exist in parent classes.
Florian> Can you help me ?
My first guess would be that gcj has an access protection bug, and
thinks that an inaccessible static method will clash with a
newly-defined non-static method. However, like everybody else said, a
small test case is the best thing. This is one place to start looking
though.
Tom